Documentation ¶
Overview ¶
lambdaurl converts an http.Handler into a Lambda request handler. Supports Lambda Function URLs configured with buffered response mode. Based on https://github.com/aws/aws-lambda-go/tree/main/lambdaurl
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestFromContext ¶
func RequestFromContext(ctx context.Context) (*events.LambdaFunctionURLRequest, bool)
RequestFromContext returns the *events.LambdaFunctionURLRequest from a context.
Types ¶
type RequestConvertionError ¶
type RequestConvertionError struct {
Cause error
}
RequestConvertionError is returned when the conversion of the Lambda request to an http.Request fails.
func (RequestConvertionError) Error ¶
func (e RequestConvertionError) Error() string
func (RequestConvertionError) Unwrap ¶
func (e RequestConvertionError) Unwrap() error
type WriteResponseError ¶
type WriteResponseError struct {
Cause error
}
WriteResponseError is returned when writing the response fails.
func (WriteResponseError) Error ¶
func (e WriteResponseError) Error() string
func (WriteResponseError) Unwrap ¶
func (e WriteResponseError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.