Documentation ¶
Index ¶
- Variables
- func NewAddressing(lcladdr string, rmtaddr string) (addrsng *addrssing)
- type Addressing
- type Request
- func (rqst *Request) Close() (err error)
- func (rqst *Request) Header(header string) (value string)
- func (rqst *Request) Headers() (headers []string)
- func (rqst *Request) IsValid() (bool, error)
- func (rqst *Request) LocalAddr() (addr string)
- func (rqst *Request) Method() (prtclmthd string)
- func (rqst *Request) Parameters() (prms parameters.ParametersAPI)
- func (rqst *Request) Path() (path string)
- func (rqst *Request) Proto() (prtcl string)
- func (rqst *Request) QueryString() (querystring string)
- func (rqst *Request) RangeOffset() (rangeoffset int64)
- func (rqst *Request) RangeType() (rangetype string)
- func (rqst *Request) Read(p []byte) (n int, err error)
- func (rqst *Request) ReadAll() (all string, err error)
- func (rqst *Request) ReadLines() (lines []string, err error)
- func (rqst *Request) ReadRune() (r rune, size int, err error)
- func (rqst *Request) Readln() (ln string, err error)
- func (rqst *Request) RemoteAddr() (addr string)
- func (rqst *Request) Response() (rspns ResponseAPI)
- type RequestAPI
- type RequestInvokerFunc
- type Requester
- type RequesterAPI
- type RequestorHandler
- type RequestorHandlerFunc
- type Response
- func (rspns *Response) Close() (err error)
- func (rspns *Response) Error() (err error)
- func (rspns *Response) Flush()
- func (rspns *Response) Header(header string) (value string)
- func (rspns *Response) Headers() (headers []string)
- func (rspns *Response) IsValid() (valid bool, err error)
- func (rspns *Response) Print(a ...interface{}) (err error)
- func (rspns *Response) Println(a ...interface{}) (err error)
- func (rspns *Response) SetErrNotify(ntfyerr func(err error))
- func (rspns *Response) SetHeader(header string, value string)
- func (rspns *Response) SetStatus(status int)
- func (rspns *Response) Write(p []byte) (n int, err error)
- type ResponseAPI
- type ResponseInvokerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnContextKey = "http-con"
Functions ¶
func NewAddressing ¶
Types ¶
type Addressing ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) Parameters ¶
func (rqst *Request) Parameters() (prms parameters.ParametersAPI)
func (*Request) QueryString ¶
func (*Request) RangeOffset ¶
func (*Request) RemoteAddr ¶
func (*Request) Response ¶
func (rqst *Request) Response() (rspns ResponseAPI)
type RequestAPI ¶
type RequestAPI interface { QueryString() string Parameters() parameters.ParametersAPI Proto() string Method() string Path() string RangeType() string RangeOffset() int64 Headers() []string Header(string) string RemoteAddr() string LocalAddr() string Read([]byte) (int, error) ReadRune() (rune, int, error) Readln() (string, error) ReadLines() ([]string, error) ReadAll() (string, error) IsValid() (bool, error) Close() error Response() ResponseAPI }
func NewRequest ¶
func NewRequest(rdr io.Reader, a ...interface{}) (rqstapi RequestAPI)
type RequestInvokerFunc ¶
type RequestInvokerFunc func(rdr io.Reader, a ...interface{}) RequestAPI
var DefaultRequestInvoker RequestInvokerFunc = nil
type Requester ¶
type Requester struct {
// contains filtered or unexported fields
}
func NewRequester ¶
func NewRequester(a ...interface{}) (rqstor *Requester)
func (*Requester) Request ¶
func (rqstr *Requester) Request() (rqst RequestAPI)
func (*Requester) Response ¶
func (rqstr *Requester) Response() (rspns ResponseAPI)
type RequesterAPI ¶
type RequesterAPI interface { Request() RequestAPI Response() ResponseAPI IsValid() (bool, error) Close() error }
type RequestorHandler ¶
type RequestorHandler interface {
ServeREQUEST(RequesterAPI)
}
type RequestorHandlerFunc ¶
type RequestorHandlerFunc func(RequesterAPI)
func (RequestorHandlerFunc) ServeREQUEST ¶
func (rqstrhdnlrfnc RequestorHandlerFunc) ServeREQUEST(rqstr RequesterAPI)
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) SetErrNotify ¶
type ResponseAPI ¶
type ResponseAPI interface { IsValid() (bool, error) Headers() []string Header(string) string SetHeader(string, string) SetStatus(int) Print(...interface{}) (err error) Println(...interface{}) (err error) Write([]byte) (int, error) SetErrNotify(func(err error)) Error() error Flush() Close() error }
func NewResponse ¶
func NewResponse(wtr io.Writer, a ...interface{}) (rspnsapi ResponseAPI)
type ResponseInvokerFunc ¶
type ResponseInvokerFunc func(w io.Writer, a ...interface{}) ResponseAPI
var DefaultResponseInvoker ResponseInvokerFunc = nil
Click to show internal directories.
Click to hide internal directories.