Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddOptions ¶
AddOptions defines the headers and query parameters to be added to the request if they are not already present.
type Options ¶
type Options struct {
Add AddOptions
Set SetOptions
Remove RemoveOptions
}
Options defines the total configuration for the request transformer middleware.
type RemoveOptions ¶
RemoveOptions defines the headers and query parameters to be removed from the request.
type RequestTransFormaterMiddleware ¶
type RequestTransFormaterMiddleware struct {
// contains filtered or unexported fields
}
RequestTransFormaterMiddleware is a middleware that transforms the request by adding, setting, or removing headers and query parameters.
func NewMiddleware ¶
func NewMiddleware(opts Options) *RequestTransFormaterMiddleware
NewMiddleware creates a new RequestTransFormaterMiddleware instance.
func (*RequestTransFormaterMiddleware) ServeHTTP ¶
func (m *RequestTransFormaterMiddleware) ServeHTTP(_ context.Context, c *app.RequestContext)
Click to show internal directories.
Click to hide internal directories.