Documentation ¶
Overview ¶
Package routest provides a quick and easy way of testing your http api
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct {
Name, Method, Path string
RequestBody io.Reader
RequestHeader http.Header
Handler http.Handler
Status int
ResponseBody []byte
ResponseHeader http.Header
}
Only Name, Method and Path are required. All other fields are optional. A non-nil RegisterFunc overrides Handler.
type RegisterFunc ¶
Click to show internal directories.
Click to hide internal directories.