httpstest

package
v0.0.0-...-3122893 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2015 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateResponse

func CreateResponse(code int) (*http.Response, error)

CreateResponse creates test response from HTTP code

func CreateResponseFromString

func CreateResponseFromString(s string) (*http.Response, error)

CreateResponseFromString creates test response from string

func CreateResponseWithBody

func CreateResponseWithBody(code int, contentType string, data string) (*http.Response, error)

CreateResponseWithBody creates test response from HTTP code, content type and body content

func CreateResponseWithType

func CreateResponseWithType(code int, contentType string) (*http.Response, error)

CreateResponseWithType creates test response from HTTP code and content type

Types

This section is empty.

Jump to

Keyboard shortcuts

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