1
0
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:
Gerasimos (Makis) Maropoulos
2019-08-12 12:05:21 +03:00
parent 5c91440e46
commit 8e83959c61
5 changed files with 364 additions and 21 deletions

10
go19.go
View File

@@ -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