util

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package util provides some utility functions for dealing with HTTP requests and responses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeRequest

func MakeRequest(method string, url string, input io.Reader, headersIncluded bool) (*http.Response, error)

MakeRequest performs an HTTP request based on the information provided

func WriteRequest

func WriteRequest(w io.Writer, req *http.Request, includeMethod bool, includeUrl bool, includeHeaders bool) error

WriteRequest writes an http.Request to the specified writer

func WriteResponse

func WriteResponse(w io.Writer, resp *http.Response, includeHeaders bool, includeStatus bool) error

WriteResponse writes an http.Response to the specified writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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