httpUtils

package
v0.0.0-...-e2c1db5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CSS_CACHE_CONTROL_HEADER   = "public, max-age=31536000"
	JS_CACHE_CONTROL_HEADER    = "public, max-age=31536000"
	JSON_CACHE_CONTROL_HEADER  = "public, max-age=31536000"
	IMAGE_CACHE_CONTROL_HEADER = "public, max-age=31536000"
	FONT_CACHE_CONTROL_HEADER  = "public, max-age=31536000"
	HTML_CACHE_CONTROL_HEADER  = "public, max-age=31536000"
)

Variables

This section is empty.

Functions

func AcceptUploadedFileAndSaveToFolder

func AcceptUploadedFileAndSaveToFolder(filePrefix, folderToSaveTo string, file multipart.File) (string, error)

func SetCacheControlHeader

func SetCacheControlHeader(ctx *context.Context, headerValue string)

func SetContentType

func SetContentType(ctx *context.Context, headerValue string)

func SetVaryHeaderToAcceptEncoding

func SetVaryHeaderToAcceptEncoding(ctx *context.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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