1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00
Gerasimos (Makis) Maropoulos
2020-08-18 05:42:48 +03:00
parent 5481b9a6c1
commit 1192e6f787
6 changed files with 83 additions and 42 deletions

View File

@@ -26,9 +26,17 @@ type Config struct {
// Defaults to true.
Method bool
// Path displays the request path (bool).
// See `Query` and `PathAfterHandler` too.
//
// Defaults to true.
Path bool
// PathAfterHandler displays the request path
// which may be set and modified
// after the handler chain is executed.
// See `Query` too.
//
// Defaults to false.
PathAfterHandler bool
// Query will append the URL Query to the Path.
// Path should be true too.
@@ -86,16 +94,17 @@ type Config struct {
// LogFunc and Skippers to nil as well.
func DefaultConfig() Config {
return Config{
Status: true,
IP: true,
Method: true,
Path: true,
Query: false,
Columns: false,
LogFunc: nil,
LogFuncCtx: nil,
Skippers: nil,
skip: nil,
Status: true,
IP: true,
Method: true,
Path: true,
PathAfterHandler: false,
Query: false,
Columns: false,
LogFunc: nil,
LogFuncCtx: nil,
Skippers: nil,
skip: nil,
}
}