Documentation
¶
Overview ¶
Package http provides a Scale Runtime Adapter for the Standard net/http library.
Index ¶
Constants ¶
View Source
const (
BodyLimit = 1024 * 1024 * 10
)
Variables ¶
This section is empty.
Functions ¶
func FromRequest ¶
FromRequest serializes http.Request object into a runtime.Context
func FromResponse ¶
func FromResponse(ctx *signature.Context, w *ResponseWriter)
FromResponse serializes the *ResponseWriter object into a runtime.Context
func ToResponse ¶
func ToResponse(ctx *signature.Context, w http.ResponseWriter) error
ToResponse deserializes the runtime.Context object into the http.ResponseWriter
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP is a Scale Runtime Adapter for the Standard net/http library.
type ResponseWriter ¶
type ResponseWriter struct {
// contains filtered or unexported fields
}
func NewResponseWriter ¶
func NewResponseWriter() *ResponseWriter
func (*ResponseWriter) Header ¶
func (r *ResponseWriter) Header() http.Header
func (*ResponseWriter) WriteHeader ¶
func (r *ResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.