Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Conversation

danielwhite
Copy link
Contributor

#80 implemented support for handlerfunc but not httpadapter.

This provides an equivalent implementation to handlerfunc.HandlerFuncAdapterV2 that will proxy events.APIGatewayV2HTTPRequest to a http.Handler.

A http.HandlerFunc implements the http.Handler interface so I've implemented handlerfunc in terms of httpadapter. This will avoid implementation drift. To avoid breaking backwards compatibility, this uses type aliases and preserves the handlerfunc.New and handlerfunc.NewV2 methods.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This provides an equivalent implementation to
`handlerfunc.HandlerFuncAdapterV2` that will proxy
`events.APIGatewayV2HTTPRequest` to a `http.Handler`.
A `http.HandlerFunc` implements the `http.Handler` interface so this
package is redundant.

To avoid breaking backwards compatibility, this uses type aliases and
preserves the `handlerfunc.New` and `handlerfunc.NewV2` methods.
@sapessi sapessi merged commit 431f760 into awslabs:master Dec 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants