Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestContext ¶
type RequestContext struct {
Request *http.Request
PathParams map[string]string
Query map[string]string
Headers map[string]string
}
func NewRequestContext ¶
func NewRequestContext(r *http.Request, pathParams map[string]string) *RequestContext
func (*RequestContext) Header ¶
func (rc *RequestContext) Header(key string) string
func (*RequestContext) Method ¶
func (rc *RequestContext) Method() string
func (*RequestContext) Param ¶
func (rc *RequestContext) Param(key string) string
func (*RequestContext) Path ¶
func (rc *RequestContext) Path() string
func (*RequestContext) QueryParam ¶
func (rc *RequestContext) QueryParam(key string) string
func (*RequestContext) URL ¶
func (rc *RequestContext) URL() string
Click to show internal directories.
Click to hide internal directories.