constants

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: NCSA Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MB                = 1048576
	MaxRequestSize    = 1 * MB
	MaxFileUploadSize = 16 * MB
)

Defines the maximum size for requests

Variables

View Source
var AccessControlAllowHeaders = "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"

AccessControlAllowHeaders is the headers allowed by CORS

View Source
var ClientAuthorizationHeaderField = "Authorization"

ClientAuthorizationHeaderField is the header to use for token authorization

View Source
var Timeout int64 = 10

Timeout is the default request timeout

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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