Documentation ¶
Index ¶
- func Get(t testing.TB, url string) (resp *http.Response)
- func Head(t testing.TB, url string) (resp *http.Response)
- func ListenAndServe(t testing.TB, addr string, handler http.Handler)
- func ListenAndServeTLS(t testing.TB, addr, certFile, keyFile string, handler http.Handler)
- func NewRequest(t testing.TB, method, url string, body io.Reader) *http.Request
- func NewRequestWithContext(t testing.TB, ctx context.Context, method, url string, body io.Reader) *http.Request
- func ParseTime(t testing.TB, text string) time.Time
- func Post(t testing.TB, url, contentType string, body io.Reader) (resp *http.Response)
- func PostForm(t testing.TB, url string, data url.Values) (resp *http.Response)
- func ProxyFromEnvironment(t testing.TB, req *http.Request) *url.URL
- func ReadRequest(t testing.TB, b *bufio.Reader) *http.Request
- func ReadResponse(t testing.TB, r *bufio.Reader, req *http.Request) *http.Response
- func Serve(t testing.TB, l net.Listener, handler http.Handler)
- func ServeTLS(t testing.TB, l net.Listener, handler http.Handler, certFile, keyFile string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServeTLS ¶
func NewRequestWithContext ¶
func ReadResponse ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.