Documentation ¶
Index ¶
- Variables
- func HandleHttpKernel(app inter.App, response net.ResponseWriter, request *net.Request)
- func NewRequest(options Options) inter.Request
- type Kernel
- type Options
- type Request
- func (r Request) App() inter.App
- func (r Request) Body() string
- func (r *Request) Content(keyInput ...string) support.Value
- func (r *Request) ContentE(keyInput ...string) (support.Value, error)
- func (r Request) ContentOr(key string, defaultValue interface{}) support.Value
- func (r Request) Cookie(key string) string
- func (r Request) CookieE(key string) (string, error)
- func (r *Request) File(key string) support.File
- func (r *Request) FileE(key string) (support.File, error)
- func (r *Request) Files(key string) []support.File
- func (r *Request) FilesE(key string) ([]support.File, error)
- func (r Request) FullUrl() string
- func (r Request) Header(key string) string
- func (r Request) Headers() http.Header
- func (r *Request) Make(abstract interface{}) interface{}
- func (r *Request) MakeE(abstract interface{}) (interface{}, error)
- func (r Request) Method() string
- func (r Request) Parameter(key string) support.Value
- func (r Request) ParameterE(key string) (support.Value, error)
- func (r Request) ParameterOr(key string, defaultValue interface{}) support.Value
- func (r Request) Path() string
- func (r Request) Query(key string) support.Value
- func (r Request) QueryE(key string) (support.Value, error)
- func (r Request) QueryOr(key string, defaultValue interface{}) support.Value
- func (r Request) Route() inter.Route
- func (r *Request) SetApp(app inter.App)
- func (r *Request) SetBody(body string) inter.Request
- func (r *Request) SetUrlValues(vars map[string]string) inter.Request
- func (r Request) Source() http.Request
- func (r Request) Url() string
- type Router
Constants ¶
This section is empty.
Variables ¶
View Source
var NoRequestBodyDecoderFoundError = errors.WithStatus(errors.WithLevel(errors.New("unsupported content type or HTTP method"), log_level.DEBUG), net.StatusUnsupportedMediaType)
Functions ¶
func HandleHttpKernel ¶ added in v0.5.1
func NewRequest ¶ added in v0.3.1
Types ¶
type Kernel ¶
func (Kernel) RecoverFromMiddlewarePanic ¶ added in v0.3.1
type Request ¶ added in v0.3.1
type Request struct {
// contains filtered or unexported fields
}
func (Request) ParameterE ¶ added in v0.3.1
func (Request) ParameterOr ¶ added in v0.3.1
func (*Request) SetUrlValues ¶ added in v0.3.1
Click to show internal directories.
Click to hide internal directories.