pylon

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 11 Imported by: 1

README

lambdaproxy

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTextContentTypes = []string{
	`text/.*`,
	`application/json`,
	`application/.*\+json`,
	`application/xml`,
	`application/.*\+xml`,
}

originally from from https://github.com/apex/go-apex/blob/415680d65fd80caf4e7da2b79594c11e96347a38/proxy/responsewriter.go

Functions

func ALBProxyEvent added in v0.2.0

func ALBProxyEvent(handler http.Handler) func(ctx context.Context, event events.ALBTargetGroupRequest) (events.ALBTargetGroupResponse, error)

ProxyEvent ...

func GatewayProxyEvent added in v0.2.0

func GatewayProxyEvent(handler http.Handler) func(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)

func SetTextContentTypes

func SetTextContentTypes(types []string) error

Types

type ALBResponseWriter added in v0.2.0

type ALBResponseWriter struct {
	// contains filtered or unexported fields
}

func (*ALBResponseWriter) Header added in v0.2.0

func (w *ALBResponseWriter) Header() http.Header

func (*ALBResponseWriter) Write added in v0.2.0

func (w *ALBResponseWriter) Write(bs []byte) (int, error)

func (*ALBResponseWriter) WriteHeader added in v0.2.0

func (w *ALBResponseWriter) WriteHeader(status int)

type GatewayResponseWriter added in v0.2.0

type GatewayResponseWriter struct {
	// contains filtered or unexported fields
}

func (*GatewayResponseWriter) Header added in v0.2.0

func (w *GatewayResponseWriter) Header() http.Header

func (*GatewayResponseWriter) Write added in v0.2.0

func (w *GatewayResponseWriter) Write(bs []byte) (int, error)

func (*GatewayResponseWriter) WriteHeader added in v0.2.0

func (w *GatewayResponseWriter) WriteHeader(status int)

type PylonResponse added in v0.2.0

type PylonResponse struct {
	StatusCode        int                 `json:"statusCode"`
	Headers           map[string]string   `json:"headers"`
	MultiValueHeaders map[string][]string `json:"multiValueHeaders"`
	Body              string              `json:"body"`
	IsBase64Encoded   bool                `json:"isBase64Encoded"`
}

Jump to

Keyboard shortcuts

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