Former-commit-id: 983161656b264289fb664ca4237bf2a9fccbc5da
This commit is contained in:
Gerasimos (Makis) Maropoulos 2020-06-28 23:08:52 +03:00
parent 871b4ef7fc
commit ed5172731c
2 changed files with 4 additions and 1 deletions

View File

@ -442,7 +442,7 @@ New Context Methods:
- `Context.StopWithError(int, error)` stops the handlers chain, writes thre status code and the error's message - `Context.StopWithError(int, error)` stops the handlers chain, writes thre status code and the error's message
- `Context.StopWithJSON(int, interface{})` stops the handlers chain, writes the status code and sends a JSON response - `Context.StopWithJSON(int, interface{})` stops the handlers chain, writes the status code and sends a JSON response
- `Context.StopWithProblem(int, iris.Problem)` stops the handlers, writes the status code and sends an `application/problem+json` response - `Context.StopWithProblem(int, iris.Problem)` stops the handlers, writes the status code and sends an `application/problem+json` response
- `Context.Protobuf(proto.Message)` sends protobuf to the client - `Context.Protobuf(proto.Message)` sends protobuf to the client (note that the `Context.JSON` is able to send protobuf as JSON)
- `Context.MsgPack(interface{})` sends msgpack format data to the client - `Context.MsgPack(interface{})` sends msgpack format data to the client
- `Context.ReadProtobuf(ptr)` binds request body to a proto message - `Context.ReadProtobuf(ptr)` binds request body to a proto message
- `Context.ReadJSONProtobuf(ptr, ...options)` binds JSON request body to a proto message - `Context.ReadJSONProtobuf(ptr, ...options)` binds JSON request body to a proto message

View File

@ -0,0 +1,3 @@
module app
go 1.14