Commit Graph

13 Commits

Author SHA1 Message Date
2c4c352aa2 fix api metadata extract from context (#1452)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-16 00:45:10 +03:00
d0a368340a api/handler/rpc: fix metadata cleanup (#1451)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-16 00:45:10 +03:00
5376c788db api: add static router and improve path parser in rpc handler (#1437)
* api: add static router and improve path parser in rpc handler

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* expose metadata context key to be able to get unmodified map keys

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* server/grpc: fix jsonpb codec for protobuf msg

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* api/handler/rpc: write 204 status code when rsp is nil

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* api/handler/rpc: add check for nil response for non javascript

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-16 00:45:10 +03:00
da31e36f93 api/handler/rpc: process all methods and merge url params to json body (#1427)
* api/handler/rpc: process all methods and merge url params to json body

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>

* add merge json test

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-16 00:45:10 +03:00
bf74b4394e api/handler: use http.MaxBytesReader and buffer pool (#1415)
* api/handler: use http.MaxBytesReader

protect api handlers from OOM cases

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-16 00:45:10 +03:00
244c9fdb90 api/handler/rpc: log errors (#1390)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-16 00:45:10 +03:00
Asim Aslam
cc8dad8338 add websocket streaming to api rpc handler (#1326) 2021-01-16 00:45:10 +03:00
Asim Aslam
92c875f103 parse url encoded form in rpc handler (#1183)
* parse url encoded form in rpc handler

* Remove comment
2021-01-16 00:45:10 +03:00
43c2711325 fix import paths for v2 release
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-16 00:45:10 +03:00
Asim Aslam
d8616f2038 Default to json content-type in api 2021-01-16 00:45:10 +03:00
Asim Aslam
03ebde1372 Go fmt everything 2021-01-16 00:45:10 +03:00
Asim Aslam
fbe4c17b9f Move selector to client/selector 2021-01-16 00:45:10 +03:00
Asim Aslam
10f1bd592f Further consolidate the libraries 2021-01-16 00:45:10 +03:00