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 ¶
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)
Click to show internal directories.
Click to hide internal directories.