Documentation ¶
Index ¶
Constants ¶
View Source
const ( JsonContentType = "application/json" FormEncodedType = "application/x-www-form-urlencoded" ContentTypeHeader = "Content-Type" )
Variables ¶
This section is empty.
Functions ¶
func GetBody ¶
func GetBody(body io.ReadCloser) []byte
Types ¶
type RequestTester ¶
type TestServer ¶
func NewTestServer ¶
func NewTestServer(statusCode int) *TestServer
func (*TestServer) Close ¶
func (ts *TestServer) Close()
func (*TestServer) GetCalls ¶
func (ts *TestServer) GetCalls(delta int) int
Click to show internal directories.
Click to hide internal directories.