Documentation ¶
Index ¶
Constants ¶
View Source
const RequestContextKey ctxKey = "gateway:requestContext"
RequestContextKey is the key for the api gateway proxy `RequestContext`.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGatewayResponse ¶
type APIGatewayResponse struct { StatusCode int `json:"statusCode"` Headers map[string]string `json:"headers"` MultiValueHeaders map[string][]string `json:"multiValueHeaders"` Body string `json:"body"` IsBase64Encoded bool `json:"isBase64Encoded,omitempty"` // Just for APIGateway v2 Cookies []string `json:"cookies"` }
func (APIGatewayResponse) ToV1Map ¶ added in v0.0.2
func (agr APIGatewayResponse) ToV1Map() map[string]any
func (APIGatewayResponse) ToV2Map ¶ added in v0.0.2
func (agr APIGatewayResponse) ToV2Map() map[string]any
Click to show internal directories.
Click to hide internal directories.