Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorAPIGatewayResponse ¶
func ErrorAPIGatewayResponse(err error) *apigw.ProxyResponse
ErrorAPIGatewayResponse returns error api gateway response
func NewHTTPRequest ¶
func NewHTTPRequest(apiRequest *apigw.ProxyRequest) (*http.Request, error)
NewHTTPRequest create a request for supplied apiRequest
func NewHTTPWriter ¶
func NewHTTPWriter(proxy *apigw.ProxyResponse) http.ResponseWriter
NewHTTPWriter creates an http writer
func SetCORSHeaderIfNeeded ¶
func SetCORSHeaderIfNeeded(apiRequest *apigw.ProxyRequest, response *apigw.ProxyResponse)
SetCORSHeaderIfNeeded sets CORS headers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.