http

package
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2016 License: MIT, MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package http DEPRECATED USE net/http/httptest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestResponseWriter

type TestResponseWriter struct {

	// StatusCode is the last int written by the call to WriteHeader(int)
	StatusCode int

	// Output is a string containing the written bytes using the Write([]byte) func.
	Output string
	// contains filtered or unexported fields
}

TestResponseWriter DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.

func (*TestResponseWriter) Header

func (rw *TestResponseWriter) Header() http.Header

Header DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.

func (*TestResponseWriter) Write

func (rw *TestResponseWriter) Write(bytes []byte) (int, error)

Write DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.

func (*TestResponseWriter) WriteHeader

func (rw *TestResponseWriter) WriteHeader(i int)

WriteHeader DEPRECATED: We recommend you use http://golang.org/pkg/net/http/httptest instead.

type TestRoundTripper

type TestRoundTripper struct {
	mock.Mock
}

TestRoundTripper DEPRECATED USE net/http/httptest

func (*TestRoundTripper) RoundTrip

func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip DEPRECATED USE net/http/httptest

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL