Documentation ¶
Index ¶
Constants ¶
View Source
const AllowHeaders = "Content-Type"
Variables ¶
View Source
var DefaultOptions = []Option{ WithContentEncoding(), }
View Source
var ServeError = serveError
Functions ¶
func UnmarshalRequest ¶
Types ¶
type Context ¶
type Context interface { context.Context Procedure() *Procedure RemoteAddr() string URL() *url.URL }
func FindContext ¶
type HTTPContext ¶
type HTTPContext struct { context.Context Response http.ResponseWriter Request *http.Request // contains filtered or unexported fields }
func (HTTPContext) Procedure ¶
func (ctx HTTPContext) Procedure() *Procedure
func (HTTPContext) RemoteAddr ¶
func (ctx HTTPContext) RemoteAddr() string
func (*HTTPContext) Value ¶
func (ctx *HTTPContext) Value(key interface{}) interface{}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
var ContentEncoding Option = contentEncoding{}
func WithContentEncoding ¶
func WithContentEncoding() Option
Click to show internal directories.
Click to hide internal directories.