mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 18:37:05 +00:00
add content negotiation feature, add context.ReadYAML and fix https://github.com/kataras/neffos/issues/1#issuecomment-515698536
Former-commit-id: 9753e3e45c7c24788b97814d3ecfb4b03f5ff414
This commit is contained in:
8
go19.go
8
go19.go
@@ -90,4 +90,12 @@ type (
|
||||
//
|
||||
// An alias for the `context/Context#CookieOption`.
|
||||
CookieOption = context.CookieOption
|
||||
// N is a struct which can be passed on the `Context.Negotiate` method.
|
||||
// It contains fields which should be filled based on the `Context.Negotiation()`
|
||||
// server side values. If no matched mime then its "Other" field will be sent,
|
||||
// which should be a string or []byte.
|
||||
// It completes the `context/context.ContentSelector` interface.
|
||||
//
|
||||
// An alias for the `context/Context#N`.
|
||||
N = context.N
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user