Tony Chen
d0a0edf67b
feat(http): add http router walk ( #2181 )
...
* add http router walk
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
Ccheers
b3eff576ce
test(transport): add unit test for transport coverage: 91.7% of state… ( #2172 )
...
* test(transport): add unit test for transport coverage: 91.7% of statements
* lint & fix data race
* fix test
* fix lint
* fix lint
* remove http func wrapper
* remove error log when watcher context is canceled
* optimize code style
3 years ago
Tony Chen
6ac63e6439
fix(transport): http endpoint listening ( #2180 )
...
* fix http serve
* fix endpoint nil
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
Tony Chen
c90eab4577
fix transport early listening ( #2177 )
...
Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
3 years ago
haiyux
ad5e9032a3
feat: make secure url to grpcs://127.0.0.1/ ( #2072 )
...
* feat:make secure url to grpcs://127.0.0.1/
3 years ago
Tony Chen
dccee86141
log: remove component logger to use global logger ( #2061 )
...
* remove component logger to user global logger
3 years ago
Tony Chen
6eae1745bd
http: handle default mux ( #2033 )
3 years ago
包子
558ef4ebae
fix(transport): fix the problem that the context is not delivered correctly ( #1906 )
3 years ago
realityone
0ed2e0f379
feat(log): add global logger appliance, as process level default logger ( #1761 )
...
* add global logger appliance, as process level default logger
* replace DefaultLogger as global logger
3 years ago
haiyux
3625634d3c
feat(transport):add grpc and http with listen ( #1729 )
...
* feat(transport):add grpc and http with listen
3 years ago
seasrain
423b60b330
fix:http server start panic when use Endpoint ( #1492 )
3 years ago
seasrain
798adbff5e
fix:http rehister url lack / ( #1464 )
...
* fix: set strictSlash true
3 years ago
seasrain
8b1086ad56
fix: optimizate with context ( #1460 )
...
* fix: optimizate with context
3 years ago
letian
4bdafa6393
feat: add http header handler ( #1461 )
3 years ago
Tony Chen
aed6af7acc
fix http server handler ( #1456 )
3 years ago
Kagaya
f7588a47de
fix: ci lint error ( #1391 )
...
* fix lint check
* fix lll lint error
* fix build error
* fix gomnd
* fix shadow declaration
* add make test command
* update
3 years ago
zwhyb
8f4e78b47d
grpc‘s secure discovery ( #1270 )
...
* add gprc secure discovery
* add http insecure filter
4 years ago
Tony Chen
5ca42fe921
feat(transport): add transport tls config ( #1267 )
...
* add http tls config
* add grpc tls config
* add examples tls
* fix resolver parseTarget
* support https for discovery
* add isSecure
* clean code
Co-authored-by: longXboy <longxboyhi@gmail.com>
Co-authored-by: 包子 <baozhecheng@foxmail.com>
4 years ago
longXboy
078ca6bc9b
add sub router for http
4 years ago
opensite
f27047c05b
style(transport): remove duplicate get path code ( #1188 )
...
transport/http remove duplicate get path code for filter
4 years ago
dachang
e45caab322
http stop should use ctx ( #1131 )
4 years ago
longxboy
545ffd1084
add response header ( #1119 )
...
* add response header
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
Tony Chen
59f54b2661
Revert/root ctx v2 ( #1088 )
...
* Revert "remove app info (#1081 )"
This reverts commit 1dab58616b
.
* add http base ctx
Co-authored-by: longXboy <longxboyhi@gmail.com>
4 years ago
Tony Chen
30334dc47c
transport/http: rename route to router ( #1082 )
...
* rename route to router
4 years ago
Tony Chen
1dab58616b
remove app info ( #1081 )
4 years ago
Tony Chen
e5e7832306
fix cors filter ( #1080 )
4 years ago
longxboy
8baa2ede4b
add path pattern for http ( #1076 )
...
* add path pattern for http
4 years ago
longxboy
60b1e593f1
add http transport ( #1060 )
...
* add http transport
* delete method and path
4 years ago
Tony Chen
7f72b72ddb
fix endpoint extract ( #1061 )
4 years ago
Tony Chen
8d8cd8c8a8
Middleware/metadata v2 ( #1050 )
...
* add middleware metadata
* add transport header
* add transport carrier
Co-authored-by: longXboy <longxboy@gmail.com>
4 years ago
Tony Chen
1b13abd136
transport/http: add http route ( #1029 )
...
* add http route
* fix http context
* add HTTP middleware
Co-authored-by: longXboy <longxboyhi@gmail.com>
4 years ago
longxboy
736385c8e6
Feat/uni transport ( #1028 )
...
* add metadata incoming&outgoing
* regenerate proto
* uni transport
Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
4 years ago
Tony Chen
42b60381c9
transport: clean endpoint listen ( #989 )
...
* fix endpoint listen
4 years ago
Tony Chen
079f11fb50
add endpoint context ( #979 )
4 years ago
longxboy
e1d6377542
add feat endpoint ( #972 )
...
* add feature endpoint
4 years ago
longXboy
493373dc13
fix addr listen bug
4 years ago
longXboy
63191930ed
fix server info bug
4 years ago
Tony Chen
149fc0195e
kratos: add application info ( #968 )
...
* add application info
* add base context
* add client target
4 years ago
Tony Chen
e7ddc1ba1e
Change the default func to public ( #966 )
4 years ago
Tony Chen
4cb3fd62e3
rename Registry to Endpointer ( #964 )
4 years ago
Tony Chen
41ea1fbc76
fix data race ( #963 )
...
* fix data race
4 years ago
Tony Chen
d78eb3ee4b
log: add level printer ( #918 )
...
* add level printer
* fix helper args
* fix test
* Update README.md
4 years ago
storyicon
18752bf0ec
set transport.kind to be strongly typed ( #728 )
...
Signed-off-by: storyicon <storyicon@foxmail.com>
4 years ago
Tony Chen
330d878aa3
http: fix request context ( #745 )
...
* fix request context
* fix recovery logger
4 years ago
LI Tongyu
f8eeb9f388
fix(http): fix typo in transport/http ( #741 )
...
1. modify HanldePrefix to HandlePrefix in transport/http/server.go
Co-authored-by: 李彤宇 <litongyu@git.bilibili.co>
4 years ago
Tony Chen
496edc6fb1
Http/refactor register service ( #734 )
...
* refactor http handle
4 years ago
Tony Chen
1fd1332c92
fix middleware errors ( #717 )
4 years ago
chenzhihui
2a011cd288
add prefix handle to register other router
4 years ago
Tony Chen
c7827ff701
fix http middleware ( #710 )
...
* fix http middleware
4 years ago
chenzhihui
4c67fa1235
fix http.Server closed
4 years ago