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 ProxyEvent ¶
func ProxyEvent(handler http.Handler) func(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error)
func SetTextContentTypes ¶
Types ¶
type ResponseWriter ¶
type ResponseWriter struct {
// contains filtered or unexported fields
}
func (*ResponseWriter) Header ¶
func (w *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(status int)
Click to show internal directories.
Click to hide internal directories.