routing

package
v0.0.0-...-61cbdb0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package routing contains various functions related to HTTP routing

Package routing contains various functions related to HTTP routing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContentType

func GetContentType(path string) (string, error)

getContentType returns the http header safe Content-Type for the requested path. If the requested path is not formatted correctly with an extension then the function will return the zero-value for a string and an error.

func HttpThrowStatus

func HttpThrowStatus(code int, context http.ResponseWriter)

Types

This section is empty.

Jump to

Keyboard shortcuts

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