Documentation ¶
Index ¶
- type Config
- type Cors
- func (c Cors) AddActualRequestHeaders(request contracts.RequestContract, response contracts.ResponseContract) contracts.ResponseContract
- func (c Cors) ConfigureAllowCredentials(response contracts.ResponseContract)
- func (c Cors) ConfigureAllowedHeaders(request contracts.RequestContract, response contracts.ResponseContract)
- func (c Cors) ConfigureAllowedMethods(request contracts.RequestContract, response contracts.ResponseContract)
- func (c Cors) ConfigureAllowedOrigin(request contracts.RequestContract, response contracts.ResponseContract)
- func (c Cors) ConfigureExposedHeaders(response contracts.ResponseContract)
- func (c Cors) ConfigureMaxAge(response contracts.ResponseContract)
- func (c Cors) HandlePreflightRequest(request contracts.RequestContract) contracts.ResponseContract
- func (c Cors) VaryHeader(response contracts.ResponseContract, header string) contracts.ResponseContract
- type Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cors ¶
type Cors struct {
// contains filtered or unexported fields
}
func (Cors) AddActualRequestHeaders ¶
func (c Cors) AddActualRequestHeaders(request contracts.RequestContract, response contracts.ResponseContract) contracts.ResponseContract
func (Cors) ConfigureAllowCredentials ¶
func (c Cors) ConfigureAllowCredentials(response contracts.ResponseContract)
func (Cors) ConfigureAllowedHeaders ¶
func (c Cors) ConfigureAllowedHeaders(request contracts.RequestContract, response contracts.ResponseContract)
func (Cors) ConfigureAllowedMethods ¶
func (c Cors) ConfigureAllowedMethods(request contracts.RequestContract, response contracts.ResponseContract)
func (Cors) ConfigureAllowedOrigin ¶
func (c Cors) ConfigureAllowedOrigin(request contracts.RequestContract, response contracts.ResponseContract)
func (Cors) ConfigureExposedHeaders ¶
func (c Cors) ConfigureExposedHeaders(response contracts.ResponseContract)
func (Cors) ConfigureMaxAge ¶
func (c Cors) ConfigureMaxAge(response contracts.ResponseContract)
func (Cors) HandlePreflightRequest ¶
func (c Cors) HandlePreflightRequest(request contracts.RequestContract) contracts.ResponseContract
func (Cors) VaryHeader ¶
func (c Cors) VaryHeader(response contracts.ResponseContract, header string) contracts.ResponseContract
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(config Config) *Middleware
func (*Middleware) Handle ¶
func (m *Middleware) Handle(request contracts.RequestContract, next pipeline.PipeHandler) contracts.ResponseContract
Click to show internal directories.
Click to hide internal directories.