mirror of
https://github.com/kataras/iris.git
synced 2025-12-24 05:17:03 +00:00
implement Problem Details for HTTP APIs #1335
Former-commit-id: ff789b6d535080c88e05c81ab3fb7d9689801ec7
This commit is contained in:
10
go19.go
10
go19.go
@@ -48,8 +48,16 @@ type (
|
||||
// See `NewConditionalHandler` for more.
|
||||
// An alias for the `context/Filter`.
|
||||
Filter = context.Filter
|
||||
// A Map is a shortcut of the map[string]interface{}.
|
||||
// A Map is an alias of map[string]interface{}.
|
||||
Map = context.Map
|
||||
// Problem Details for HTTP APIs.
|
||||
// Pass a Problem value to `context.Problem` to
|
||||
// write an "application/problem+json" response.
|
||||
//
|
||||
// Read more at: https://github.com/kataras/iris/wiki/Routing-error-handlers
|
||||
//
|
||||
// It is an alias of `context.Problem` type.
|
||||
Problem = context.Problem
|
||||
|
||||
// Supervisor is a shortcut of the `host#Supervisor`.
|
||||
// Used to add supervisor configurators on common Runners
|
||||
|
||||
Reference in New Issue
Block a user