{"modulePath":"github.com/LF-Engineering/aws-lambda-go-api-proxy","version":"v0.3.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package handlerfunc\n\n## Types\n\n```go\ntype HandlerFuncAdapter struct {\n\tcore.RequestAccessor\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(handlerFunc http.HandlerFunc) *HandlerFuncAdapter\n```\n\n```go\nfunc (h *HandlerFuncAdapter) 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.ResponseWriter.\n\n```go\nfunc (h *HandlerFuncAdapter) 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.HandlerFunc 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/handlerfunc","name":"handlerfunc","synopsis":"","isRedistributable":true}
