1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-27 13:55:56 +00:00

🎄 Merry Christmas everyone

minor fixes
This commit is contained in:
Gerasimos (Makis) Maropoulos
2021-12-26 00:01:01 +02:00
parent e213dba0d3
commit 62a1829cb9
6 changed files with 20 additions and 8 deletions

View File

@@ -44,6 +44,14 @@ type (
//
// Example: https://github.com/kataras/iris/blob/master/_examples/request-body/read-custom-via-unmarshaler/main.go
UnmarshalerFunc = context.UnmarshalerFunc
// DecodeFunc is a generic type of decoder function.
// When the returned error is not nil the decode operation
// is terminated and the error is received by the ReadJSONStream method,
// otherwise it continues to read the next available object.
// Look the `Context.ReadJSONStream` method.
//
// Example: https://github.com/kataras/iris/blob/master/_examples/request-body/read-json-stream.
DecodeFunc = context.DecodeFunc
// A Handler responds to an HTTP request.
// It writes reply headers and data to the Context.ResponseWriter() and then return.
// Returning signals that the request is finished;