requester

package
v0.0.0-...-bf4388d Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2015 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	SetFunction(SendRequestFunction)
	Function() SendRequestFunction
}

Manager interface allows the ability to set the override request.

type SendRequestFunction

type SendRequestFunction func(request *http.Request) (*http.Response, error)

SendRequestFunction is a function that can execute a request.

func DebugRequestMakerGenerator

func DebugRequestMakerGenerator(optionalExecutingFunction SendRequestFunction, client *http.Client, debug bool) SendRequestFunction

DebugRequestMakerGenerator generates a function that will if debug = true writes the http requests and responses to Standard out.

func ExtractSendRequestFunction

func ExtractSendRequestFunction(val interface{}) SendRequestFunction

ExtractSendRequestFunction will get the SendRequestFunction if the val implements the requester.Manager interface

func StandardHTTPRequestMakerGenerator

func StandardHTTPRequestMakerGenerator(client http.Client) SendRequestFunction

StandardHTTPRequestMakerGenerator generates a function that will excute an http request using the specified Client

Jump to

Keyboard shortcuts

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