1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- package context
- import "github.com/kataras/iris/core/netutil"
- // ConfigurationReadOnly can be implemented
- // by Configuration, it's being used inside the Context.
- // All methods that it contains should be "safe" to be called by the context
- // at "serve time". A configuration field may be missing when it's not
- // safe or its useless to be called from a request handler.
- type ConfigurationReadOnly interface {
- // GetVHost returns the non-exported vhost config field.
- GetVHost() string
- // GetLogLevel returns the LogLevel field.
- GetLogLevel() string
- // GetSocketSharding returns the SocketSharding field.
- GetSocketSharding() bool
- // GetDisablePathCorrection returns the DisablePathCorrection field
- GetDisablePathCorrection() bool
- // GetDisablePathCorrectionRedirection returns the DisablePathCorrectionRedirection field.
- GetDisablePathCorrectionRedirection() bool
- // GetEnablePathIntelligence returns the EnablePathIntelligence field.
- GetEnablePathIntelligence() bool
- // GetEnablePathEscape returns the EnablePathEscape field.
- GetEnablePathEscape() bool
- // GetForceLowercaseRouting returns the ForceLowercaseRouting field.
- GetForceLowercaseRouting() bool
- // GetFireMethodNotAllowed returns the FireMethodNotAllowed field.
- GetFireMethodNotAllowed() bool
- // GetDisableAutoFireStatusCode returns the DisableAutoFireStatusCode field.
- GetDisableAutoFireStatusCode() bool
- // ResetOnFireErrorCode retruns the ResetOnFireErrorCode field.
- GetResetOnFireErrorCode() bool
- // GetEnableOptimizations returns the EnableOptimizations field.
- GetEnableOptimizations() bool
- // GetDisableBodyConsumptionOnUnmarshal returns the DisableBodyConsumptionOnUnmarshal field.
- GetDisableBodyConsumptionOnUnmarshal() bool
- // GetFireEmptyFormError returns the FireEmptyFormError field.
- GetFireEmptyFormError() bool
- // GetTimeFormat returns the TimeFormat field.
- GetTimeFormat() string
- // GetCharset returns the Charset field.
- GetCharset() string
- // GetPostMaxMemory returns the PostMaxMemory field.
- GetPostMaxMemory() int64
- // GetTranslateLanguageContextKey returns the LocaleContextKey field.
- GetLocaleContextKey() string
- // GetLanguageContextKey returns the LanguageContextKey field.
- GetLanguageContextKey() string
- // GetVersionContextKey returns the VersionContextKey field.
- GetVersionContextKey() string
- // GetViewEngineContextKey returns the ViewEngineContextKey field.
- GetViewEngineContextKey() string
- // GetViewLayoutContextKey returns the ViewLayoutContextKey field.
- GetViewLayoutContextKey() string
- // GetViewDataContextKey returns the ViewDataContextKey field.
- GetViewDataContextKey() string
- // GetRemoteAddrHeaders returns RemoteAddrHeaders field.
- GetRemoteAddrHeaders() []string
- // GetRemoteAddrHeadersForce returns RemoteAddrHeadersForce field.
- GetRemoteAddrHeadersForce() bool
- // GetRemoteAddrPrivateSubnets returns the RemoteAddrPrivateSubnets field.
- GetRemoteAddrPrivateSubnets() []netutil.IPRange
- // GetSSLProxyHeaders returns the SSLProxyHeaders field.
- GetSSLProxyHeaders() map[string]string
- // GetHostProxyHeaders returns the HostProxyHeaders field.
- GetHostProxyHeaders() map[string]bool
- // GetOther returns the Other field.
- GetOther() map[string]interface{}
- }
|