response

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResponseVersionNotSupported = errors.New("gateway[response]: version not supported")
)

Functions

This section is empty.

Types

type Writer

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

Writer implements the http.ResponseWriter interface in order to support the API Gateway Lambda HTTP "protocol".

func New

func New() *Writer

New returns a new response writer to capture http output.

func (*Writer) CloseNotify

func (w *Writer) CloseNotify() <-chan bool

CloseNotify notify when the response is closed

func (*Writer) End

func (w *Writer) End() types.APIGatewayResponse

End the request.

func (*Writer) Header

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

Header implementation.

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

Write implementation.

func (*Writer) WriteHeader

func (w *Writer) WriteHeader(status int)

WriteHeader implementation.

Jump to

Keyboard shortcuts

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