forked from mirror/gin
byte alignment (#2774)
This commit is contained in:
parent
372cc4a010
commit
9c27053243
34
gin.go
34
gin.go
|
@ -99,6 +99,23 @@ type Engine struct {
|
||||||
// `(*gin.Context).Request.RemoteAddr`.
|
// `(*gin.Context).Request.RemoteAddr`.
|
||||||
ForwardedByClientIP bool
|
ForwardedByClientIP bool
|
||||||
|
|
||||||
|
// DEPRECATED: USE `TrustedPlatform` WITH VALUE `gin.GoogleAppEngine` INSTEAD
|
||||||
|
// #726 #755 If enabled, it will trust some headers starting with
|
||||||
|
// 'X-AppEngine...' for better integration with that PaaS.
|
||||||
|
AppEngine bool
|
||||||
|
|
||||||
|
// If enabled, the url.RawPath will be used to find parameters.
|
||||||
|
UseRawPath bool
|
||||||
|
|
||||||
|
// If true, the path value will be unescaped.
|
||||||
|
// If UseRawPath is false (by default), the UnescapePathValues effectively is true,
|
||||||
|
// as url.Path gonna be used, which is already unescaped.
|
||||||
|
UnescapePathValues bool
|
||||||
|
|
||||||
|
// RemoveExtraSlash a parameter can be parsed from the URL even with extra slashes.
|
||||||
|
// See the PR #1817 and issue #1644
|
||||||
|
RemoveExtraSlash bool
|
||||||
|
|
||||||
// List of headers used to obtain the client IP when
|
// List of headers used to obtain the client IP when
|
||||||
// `(*gin.Engine).ForwardedByClientIP` is `true` and
|
// `(*gin.Engine).ForwardedByClientIP` is `true` and
|
||||||
// `(*gin.Context).Request.RemoteAddr` is matched by at least one of the
|
// `(*gin.Context).Request.RemoteAddr` is matched by at least one of the
|
||||||
|
@ -115,27 +132,10 @@ type Engine struct {
|
||||||
// that platform, for example to determine the client IP
|
// that platform, for example to determine the client IP
|
||||||
TrustedPlatform string
|
TrustedPlatform string
|
||||||
|
|
||||||
// DEPRECATED: USE `TrustedPlatform` WITH VALUE `gin.GoogleAppEngine` INSTEAD
|
|
||||||
// #726 #755 If enabled, it will trust some headers starting with
|
|
||||||
// 'X-AppEngine...' for better integration with that PaaS.
|
|
||||||
AppEngine bool
|
|
||||||
|
|
||||||
// If enabled, the url.RawPath will be used to find parameters.
|
|
||||||
UseRawPath bool
|
|
||||||
|
|
||||||
// If true, the path value will be unescaped.
|
|
||||||
// If UseRawPath is false (by default), the UnescapePathValues effectively is true,
|
|
||||||
// as url.Path gonna be used, which is already unescaped.
|
|
||||||
UnescapePathValues bool
|
|
||||||
|
|
||||||
// Value of 'maxMemory' param that is given to http.Request's ParseMultipartForm
|
// Value of 'maxMemory' param that is given to http.Request's ParseMultipartForm
|
||||||
// method call.
|
// method call.
|
||||||
MaxMultipartMemory int64
|
MaxMultipartMemory int64
|
||||||
|
|
||||||
// RemoveExtraSlash a parameter can be parsed from the URL even with extra slashes.
|
|
||||||
// See the PR #1817 and issue #1644
|
|
||||||
RemoveExtraSlash bool
|
|
||||||
|
|
||||||
delims render.Delims
|
delims render.Delims
|
||||||
secureJSONPrefix string
|
secureJSONPrefix string
|
||||||
HTMLRender render.HTMLRender
|
HTMLRender render.HTMLRender
|
||||||
|
|
Loading…
Reference in New Issue