1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-07 23:02:12 +02:00
Commit Graph

94 Commits

Author SHA1 Message Date
dachang
e45caab322
http stop should use ctx (#1131) 2021-06-30 18:01:56 +08:00
Tony Chen
d4d6925cd0
cmd/protoc-gen-go-http: fix http protoc to bind query_string (#1126)
* fix http protoc to bind query_string

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-30 14:13:28 +08:00
longxboy
545ffd1084
add response header (#1119)
* add response header

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-29 15:33:18 +08:00
longxboy
87eb5ed5c0
add http ip port support (#1115)
* add http ip port support

* fix example
2021-06-28 10:20:48 +08:00
longxboy
953c91d354
keep balancer nodes (#1110) 2021-06-25 18:18:57 +08:00
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>
2021-06-20 23:00:27 +08:00
Tony Chen
30334dc47c
transport/http: rename route to router (#1082)
* rename route to router
2021-06-19 16:02:07 +08:00
Tony Chen
1dab58616b
remove app info (#1081) 2021-06-19 15:40:28 +08:00
Tony Chen
e5e7832306
fix cors filter (#1080) 2021-06-19 09:53:34 +08:00
longxboy
8baa2ede4b
add path pattern for http (#1076)
* add path pattern for http
2021-06-17 17:34:27 +08:00
longxboy
25c8e2bd3b
fix wrapper seq (#1073) 2021-06-17 10:50:33 +08:00
longxboy
3af16d771d
add comment (#1071)
add comment
2021-06-17 10:26:45 +08:00
Tony Chen
16b1da04e0
transport/http: fix content type (#1070)
* fix content type
2021-06-17 10:26:31 +08:00
longxboy
db02034dd1
fix error decode (#1068)
* fix error decode
2021-06-16 19:54:19 +08:00
longxboy
60b1e593f1
add http transport (#1060)
* add http transport

* delete method and path
2021-06-15 11:40:41 +08:00
Tony Chen
7f72b72ddb
fix endpoint extract (#1061) 2021-06-15 11:39:28 +08:00
Tony Chen
6ee0607f03
transport: add transport kind (#1059)
* add transport kind
2021-06-15 11:05:13 +08:00
Windfarer
0ff1c6f89a
test http (#1045)
* test http
* fix response codec
* benchmark
2021-06-14 12:25:15 +08:00
Tony Chen
8d8cd8c8a8
Middleware/metadata v2 (#1050)
* add middleware metadata
* add transport header
* add transport carrier

Co-authored-by: longXboy <longxboy@gmail.com>
2021-06-14 00:59:07 +08:00
Tony Chen
2729caeecf
http/binding: rename encode url (#1039)
* rename binding url
2021-06-13 00:56:01 +08:00
Tony Chen
eca0f35cb5
transport/http: add vars to http context (#1037)
* add vars to http context

* add query to http context

* remove http deps

* clean request decoder
2021-06-12 22:21:54 +08:00
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>
2021-06-12 18:30:17 +08:00
longxboy
736385c8e6
Feat/uni transport (#1028)
* add metadata incoming&outgoing

* regenerate proto

* uni transport

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-06-11 15:05:57 +08:00
longXboy
f90e5874ef delete http recovery 2021-06-01 22:18:42 +08:00
longXboy
864008ea6b delete grpc recovery 2021-06-01 22:12:46 +08:00
Tony Chen
92b6bf54eb
add grpc interceptor option (#990) 2021-06-01 21:19:18 +08:00
Tony Chen
29e387a39c
add grpc interceptor option (#987) 2021-06-01 19:59:35 +08:00
Tony Chen
42b60381c9
transport: clean endpoint listen (#989)
* fix endpoint listen
2021-06-01 19:56:46 +08:00
Tony Chen
bef6d8d818
transport/http: clean http client (#981)
* clean http client
2021-06-01 14:43:31 +08:00
Tony Chen
079f11fb50
add endpoint context (#979) 2021-06-01 12:02:22 +08:00
Tony Chen
f83438b693
http/health: remove health handler (#978)
* remove health handler & example
2021-06-01 11:26:27 +08:00
longxboy
e1d6377542
add feat endpoint (#972)
* add feature endpoint
2021-05-31 16:10:17 +08:00
longXboy
493373dc13 fix addr listen bug 2021-05-31 10:59:03 +08:00
longXboy
63191930ed fix server info bug 2021-05-30 21:43:41 +08:00
Tony Chen
149fc0195e
kratos: add application info (#968)
* add application info

* add base context

* add client target
2021-05-29 23:52:05 +08:00
Sycamor
7f835db398
chore: change nil slice to maked slice (#967)
Co-authored-by: Sycamor <zhangqiang@acnet.co>
2021-05-28 21:05:17 +08:00
Tony Chen
e7ddc1ba1e
Change the default func to public (#966) 2021-05-28 19:47:24 +08:00
Tony Chen
4cb3fd62e3
rename Registry to Endpointer (#964) 2021-05-28 15:30:55 +08:00
Tony Chen
41ea1fbc76
fix data race (#963)
* fix data race
2021-05-28 15:08:25 +08:00
Shuhui Xu
ce04916181
transport/http: rename CodecForRequest func (#960)
Co-authored-by: 徐曙辉 <xushuhui@himango.cn>
2021-05-27 17:32:14 +08:00
longXboy
cc0214d78b mv balancer 2021-05-27 15:04:32 +08:00
longXboy
637af7f4b0 change filename 2021-05-26 16:46:21 +08:00
longxboy
28abad2268
Feat/http resovler (#953)
* add http resolver & balancer

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-05-26 16:43:59 +08:00
longxboy
eb958b2093
add path for rpc stub (#947)
* add path for rpc stub

* fix http body and response_body

Co-authored-by: chenzhihui <zhihui_chen@foxmail.com>
2021-05-26 14:23:43 +08:00
Tony Chen
66412031fd
errors: refactor status code (#948)
* refactor status code
2021-05-25 15:01:53 +08:00
Tony Chen
cc0221b5ce
errors: add errors coder (#946)
* add errors coder

* rename internal http to httputil

* add errors proto
2021-05-25 00:56:31 +08:00
longxboy
9a3a02fc68
add http client rpc stub (#943)
* add http client
2021-05-24 23:01:26 +08:00
Tony Chen
15d0f22fb7
fix handler options (#941) 2021-05-22 13:46:30 +08:00
Tony Chen
4d0770a6a2
fix http handler (#939) 2021-05-22 11:14:55 +08:00
Tony Chen
b9f821c29f
transport/http: add http handler (#937)
* add http handler

* fix request error
2021-05-21 23:11:36 +08:00