Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrResponseVersionNotSupported = errors.New("gateway[response]: version not supported")
)
Functions ¶
This section is empty.
Types ¶
type APIGatewayResponse ¶ added in v0.1.0
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.1.0
func (agr APIGatewayResponse) ToV1Map() map[string]any
func (APIGatewayResponse) ToV2Map ¶ added in v0.1.0
func (agr APIGatewayResponse) ToV2Map() map[string]any
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements the http.ResponseWriter interface in order to support the API Gateway Lambda HTTP "protocol".
func (*Writer) CloseNotify ¶
CloseNotify notify when the response is closed
Click to show internal directories.
Click to hide internal directories.