Documentation ¶
Index ¶
- func Get(url string, opts ...ReqOption) (*http.Response, []byte, error)
- func GetClock() *timetools.FreezedTime
- func MakeRequest(url string, opts ...ReqOption) (*http.Response, []byte, error)
- func NewHandler(handler http.HandlerFunc) *httptest.Server
- func NewResponder(response string) *httptest.Server
- func ParseURI(uri string) *url.URL
- func Post(url string, opts ...ReqOption) (*http.Response, []byte, error)
- type ReqOption
- type ReqOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRequest ¶
MakeRequest create and do a request
func NewHandler ¶
func NewHandler(handler http.HandlerFunc) *httptest.Server
NewHandler creates a new Server
func NewResponder ¶
NewResponder creates a new Server with response
Types ¶
Click to show internal directories.
Click to hide internal directories.