httputil

package
Version: v0.0.0-...-53c5426 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2016 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

README

httputil

Common code for dealing with HTTP.

Includes:

  • Code for returning JSON responses.
Documentation

Visit the docs on gopkgdoc

Documentation

Index

Constants

View Source
const (
	JSONContentType = "application/json"
)

Variables

This section is empty.

Functions

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, code int, resp interface{}) error

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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