{"modulePath":"github.com/LF-Engineering/aws-lambda-go-api-proxy","version":"v0.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpadapter\n\n## Types\n\n```go\ntype HandlerAdapter struct {\n\tcore.RequestAccessor\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(handler http.Handler) *HandlerAdapter\n```\n\n```go\nfunc (h *HandlerAdapter) Proxy(event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)\n```\nProxy receives an API Gateway proxy event, transforms it into an http.Request object, and sends it to the http.HandlerFunc for routing. It returns a proxy response object generated from the http.Handler.\n\n```go\nfunc (h *HandlerAdapter) ProxyWithContext(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)\n```\nProxyWithContext receives context and an API Gateway proxy event, transforms them into an http.Request object, and sends it to the http.Handler for routing. It returns a proxy response object generated from the http.ResponseWriter.\n\n","path":"github.com/LF-Engineering/aws-lambda-go-api-proxy/httpadapter","name":"httpadapter","synopsis":"","isRedistributable":true}
