Documentation ¶
Index ¶
- Variables
- func NotFound(w http.ResponseWriter, r *http.Request)
- type Format
- type RequestVal
- func (t *RequestVal) ContentLength() int64
- func (t *RequestVal) Cookie(key string) string
- func (t *RequestVal) Form(key string) string
- func (t *RequestVal) Header(key string) string
- func (t *RequestVal) Host() string
- func (t *RequestVal) Hostname() string
- func (t *RequestVal) IsQuery() string
- func (t *RequestVal) Method() string
- func (t *RequestVal) Password() string
- func (t *RequestVal) Path() string
- func (t *RequestVal) Port() string
- func (t *RequestVal) PostForm(key string) string
- func (t *RequestVal) Proto() string
- func (t *RequestVal) ProtoMajor() int
- func (t *RequestVal) ProtoMinor() int
- func (t *RequestVal) Query(key string) string
- func (t *RequestVal) RawPath() string
- func (t *RequestVal) RawQuery() string
- func (t *RequestVal) RemoteAddr() string
- func (t *RequestVal) RequestURI() string
- func (t *RequestVal) Scheme() string
- func (t *RequestVal) UserAgent() string
- func (t *RequestVal) Username() string
- type Template
- type Text
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotFoundText = "404 not found {{.Scheme}}://{{.Host}}{{.RequestURI}}" NotFoundHandler = http.HandlerFunc(NotFound) )
Functions ¶
Types ¶
type Format ¶
type RequestVal ¶
type RequestVal struct {
// contains filtered or unexported fields
}
func (*RequestVal) ContentLength ¶
func (t *RequestVal) ContentLength() int64
func (*RequestVal) Cookie ¶
func (t *RequestVal) Cookie(key string) string
func (*RequestVal) Form ¶
func (t *RequestVal) Form(key string) string
func (*RequestVal) Header ¶
func (t *RequestVal) Header(key string) string
func (*RequestVal) Host ¶
func (t *RequestVal) Host() string
func (*RequestVal) Hostname ¶
func (t *RequestVal) Hostname() string
func (*RequestVal) IsQuery ¶
func (t *RequestVal) IsQuery() string
func (*RequestVal) Method ¶
func (t *RequestVal) Method() string
func (*RequestVal) Password ¶
func (t *RequestVal) Password() string
func (*RequestVal) Path ¶
func (t *RequestVal) Path() string
func (*RequestVal) Port ¶
func (t *RequestVal) Port() string
func (*RequestVal) PostForm ¶
func (t *RequestVal) PostForm(key string) string
func (*RequestVal) Proto ¶
func (t *RequestVal) Proto() string
func (*RequestVal) ProtoMajor ¶
func (t *RequestVal) ProtoMajor() int
func (*RequestVal) ProtoMinor ¶
func (t *RequestVal) ProtoMinor() int
func (*RequestVal) Query ¶
func (t *RequestVal) Query(key string) string
func (*RequestVal) RawPath ¶
func (t *RequestVal) RawPath() string
func (*RequestVal) RawQuery ¶
func (t *RequestVal) RawQuery() string
func (*RequestVal) RemoteAddr ¶
func (t *RequestVal) RemoteAddr() string
func (*RequestVal) RequestURI ¶
func (t *RequestVal) RequestURI() string
func (*RequestVal) Scheme ¶
func (t *RequestVal) Scheme() string
func (*RequestVal) UserAgent ¶
func (t *RequestVal) UserAgent() string
func (*RequestVal) Username ¶
func (t *RequestVal) Username() string
Click to show internal directories.
Click to hide internal directories.