pylon

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2018 License: MIT Imports: 10 Imported by: 0

README

lambdaproxy

Documentation

Index

Constants

This section is empty.

Variables

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

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

Functions

func SetTextContentTypes

func SetTextContentTypes(types []string) error

Types

type ResponseWriter

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

func (*ResponseWriter) Header

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

func (*ResponseWriter) Write

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

func (*ResponseWriter) WriteHeader

func (w *ResponseWriter) WriteHeader(status int)

Jump to

Keyboard shortcuts

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