Documentation ¶
Index ¶
- Constants
- func GetMethodPools() *methodsPools
- type Adapter
- type AppendHeader
- type Caller
- type Content
- type ContentType
- type Entry
- type Error
- type Flusher
- type Header
- type HttpStatus
- type Int16Req
- type Int32Req
- type Int64Req
- type Int8Req
- type IntReq
- type Match
- type MethodInfo
- type Param
- type ParamWarp
- type ReadHeader
- type RetAdapter
- type Serialize
- type StringReq
- type WriteHeader
Constants ¶
View Source
const ( Content_JSON = "application/json" CONTENT_STREAM = "application/octet-stream" HEAD_CONST = "API_HEADER_TYPE" CONTENT_DISPOSITION = "Content-Disposition" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppendHeader ¶
type AppendHeader interface {
Append(header ReadHeader) map[string]string
}
used in retType
type Error ¶
func NewErrorCode ¶
type Header ¶
type Header interface { ReadHeader WriteHeader }
Header used in param eg. *
GET(func(a def.Header) interface{} { return a.Values("Accept-Encoding") }, "/h")
type HttpStatus ¶
type HttpStatus interface {
Code() int
}
type MethodInfo ¶
type RetAdapter ¶
type RetAdapter interface { ContentType Return() io.Reader Register() []reflect.Type }
type WriteHeader ¶
type WriteHeader interface {
Add(key, value string)
}
Click to show internal directories.
Click to hide internal directories.