kevin
9592639cb4
add error handle tests
4 years ago
kevin
abcb28e506
support error customization
4 years ago
bittoy
3819f67cf4
add redis geospatial ( #209 )
...
* add redis geospatial
* fix go test error
4 years ago
kevin
3806e66cf1
simplify http server starter
4 years ago
kevin
bd430baf52
graceful shutdown refined
4 years ago
kevin
c9ec22d5f4
add https listen and serve
4 years ago
kevin
4c9315e984
add more tests
4 years ago
kevin
668a7011c4
add more tests
4 years ago
kevin
5e87b33b23
support https in rest
4 years ago
kevin
9c8f31cf83
can only specify one origin in cors
4 years ago
kevin
fe0d0687f5
support cors in rest server
4 years ago
kevin
737cd4751a
rename NewPatRouter to NewRouter
4 years ago
kingxt
aa3c391919
api add middleware support ( #140 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* update doc
* remove update
* remove no need
* remove no need
* goctl add jwt support
* goctl add jwt support
* goctl add jwt support
* goctl support import
* goctl support import
* support return ()
* revert
* refactor and rename folder to group
* remove no need
* add anonymous annotation
* optimized
* rename
* rename
* update test
* api add middleware support: usage:
@server(
middleware: M1, M2
)
* api add middleware support: usage:
@server(
middleware: M1, M2
)
* simple logic
* should reverse middlewares
* optimized
* optimized
* rename
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin
94645481b1
fix golint issues
4 years ago
kevin
20d53add46
update readme
4 years ago
kevin
adc275872d
add more tests
4 years ago
kevin
b8fcdd5460
add more tests
4 years ago
kevin
9277ad77f7
fix typo of prometheus
4 years ago
kevin
a958400595
rename prommetric to prometheous, add unit tests
4 years ago
kevin
be9c48da7f
add tracing logs in server side and client side
4 years ago
kevin
5e99f2b85d
add trace/span in http logs
4 years ago
kevin
86d3de4c89
use package level defined contextKey as context key
4 years ago
kevin
0b1ee79d3a
rename rpcx to zrpc
4 years ago
kevin
2b1466e41e
add more tests
4 years ago
kevin
9e14820698
fix golint warnings
4 years ago
kevin
054d9b5540
rename rest files
4 years ago
kevin
d6c7da521e
remove bodyless check
4 years ago
kevin
96b6d2ab58
parse body only if content length > 0
4 years ago
kevin
88a73f1042
return ErrBodylessRequest on get method etc.
4 years ago
kevin
80d55dbc02
export httpx.GetRemoteAddr
4 years ago
kevin
b541403ce2
export router
4 years ago
kevin
a7c02414f3
export token parser for refresh token service
4 years ago
kevin
c57051ce63
use strings.Contains instead of strings.Index
4 years ago
kevin
40895ba8d9
optimize reading http request body
4 years ago
kevin
215b4bae3b
check content length before reading
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kim
44290aa4d6
refactor
4 years ago
kim
cf8e0a118f
refactor ngin to rest
4 years ago
kevin
b73684d9a6
move router to httpx
4 years ago
kevin
f372ded63c
rename ngin to rest
4 years ago
kevin
0897f60c5d
rename ngin to rest
4 years ago