mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
b409f7807e
Thanks @mulyawansentosa and @remopavithran for your donates ❤️
79 lines
3.4 KiB
Go
79 lines
3.4 KiB
Go
package context
|
|
|
|
import "github.com/kataras/iris/v12/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
|
|
// GetLanguageInputContextKey returns the LanguageInputContextKey field.
|
|
GetLanguageInputContextKey() string
|
|
// GetVersionContextKey returns the VersionContextKey field.
|
|
GetVersionContextKey() string
|
|
// GetVersionAliasesContextKey returns the VersionAliasesContextKey field.
|
|
GetVersionAliasesContextKey() 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{}
|
|
}
|