Documentation
¶
Index ¶
- type Response
- func (r *Response) RespondBase64Data(data []byte) error
- func (r *Response) RespondBody(body io.Reader) error
- func (r *Response) RespondJSON(v interface{}) (int, error)
- func (r *Response) RespondText(body string) error
- func (r *Response) SetCookie(c http.Cookie) error
- func (r *Response) SetHeader(key, value string)
- func (r *Response) SetStatusCode(statusCode int)
- func (r *Response) StatusCode() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response implements base.Response for events.LambdaFunctionURLStreamingResponse.
func Wrap ¶
func Wrap(response *events.LambdaFunctionURLStreamingResponse) *Response
func (*Response) RespondBase64Data ¶
func (*Response) RespondJSON ¶
func (*Response) RespondText ¶
func (*Response) SetStatusCode ¶
func (*Response) StatusCode ¶
Click to show internal directories.
Click to hide internal directories.