Documentation
¶
Index ¶
- Constants
- type Request
- func Delete(urlPath string) (Request, error)
- func Get(urlPath string) (Request, error)
- func Head(urlPath string) (Request, error)
- func Method(method string, urlPath string) (Request, error)
- func Options(urlPath string) (Request, error)
- func Patch(urlPath string) (Request, error)
- func Post(urlPath string) (Request, error)
- func Put(urlPath string) (Request, error)
- type Response
- type Session
Constants ¶
View Source
const (
Version = "1.0"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request interface { SetHeader(string, ...string) Request Headers() map[string][]string SetQueryParam(string, ...string) Request QueryParams() map[string][]string UrlPath() string SetJSON(string) Request SetRawBody([]byte) Request SetFormParam(string, ...string) Request FormParams() map[string][]string AddFile(string, string, []byte) Request Send() (Response, error) }
type Session ¶
type Session interface { // TODO: implement timeout // SetTimeout(time.Duration) Session // Timeout() time.Duration SetCookies(map[string]string) Session Cookies() map[string]string Method(string, string) (Request, error) Get(string) (Request, error) Post(string) (Request, error) Put(string) (Request, error) Delete(string) (Request, error) Head(string) (Request, error) Options(string) (Request, error) Patch(string) (Request, error) }
Click to show internal directories.
Click to hide internal directories.