lambdaurl

package
v1.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Overview

Package lambdaurl serves requests from Lambda Function URLs using http.Handler.

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.

func Start

func Start(handler http.Handler, options ...lambda.Option)

Start wraps a http.Handler and calls lambda.StartHandlerFunc Only supports:

  • Lambda Function URLs configured with `InvokeMode: RESPONSE_STREAM`
  • Lambda Functions using the `provided` or `provided.al2` runtimes.
  • Lambda Functions using the `go1.x` runtime when compiled with `-tags lambda.norpc`

func Wrap

Wrap converts an http.Handler into a lambda request handler. Only Lambda Function URLs configured with `InvokeMode: RESPONSE_STREAM` are supported with the returned handler. The response body of the handler will conform to the content-type `application/vnd.awslambda.http-integration-response`

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL