httpadapter

package
v0.14.14 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerAdapter

type HandlerAdapter struct {
	core.RequestAccessor
	// contains filtered or unexported fields
}

func New

func New(handler http.Handler) *HandlerAdapter

func (*HandlerAdapter) Proxy

Proxy 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.

func (*HandlerAdapter) ProxyWithContext added in v0.3.0

ProxyWithContext 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.

type HandlerAdapterALB added in v0.14.2

type HandlerAdapterALB struct {
	core.RequestAccessorALB
	// contains filtered or unexported fields
}

func NewALB added in v0.14.2

func NewALB(handler http.Handler) *HandlerAdapterALB

func (*HandlerAdapterALB) Proxy added in v0.14.2

Proxy receives an ALB Target Group 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.

func (*HandlerAdapterALB) ProxyWithContext added in v0.14.2

ProxyWithContext receives context and an ALB 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.

type HandlerAdapterV2 added in v0.14.2

type HandlerAdapterV2 struct {
	core.RequestAccessorV2
	// contains filtered or unexported fields
}

func NewV2 added in v0.14.2

func NewV2(handler http.Handler) *HandlerAdapterV2

func (*HandlerAdapterV2) Proxy added in v0.14.2

Proxy 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.

func (*HandlerAdapterV2) ProxyWithContext added in v0.14.2

ProxyWithContext 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.

Jump to

Keyboard shortcuts

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