mirror of
https://github.com/kataras/iris.git
synced 2025-03-15 15:06:26 +01:00
minor
Former-commit-id: 983161656b264289fb664ca4237bf2a9fccbc5da
This commit is contained in:
parent
871b4ef7fc
commit
ed5172731c
|
@ -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
|
||||||
|
|
3
_examples/response-writer/protobuf/go.mod
Normal file
3
_examples/response-writer/protobuf/go.mod
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
module app
|
||||||
|
|
||||||
|
go 1.14
|
Loading…
Reference in New Issue
Block a user