httpaddon

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPParameterValue

func GetHTTPParameterValue(r *http.Request, key string) (string, bool)

GetHTTPParameterValue retrieves the value of a HTTP parameter. Returns false in case no HTTP GET parameter is present. Returns false in case there are multiple values for the given HTTP GET parameter

func GetHTTPParameterValueAsInt

func GetHTTPParameterValueAsInt(r *http.Request, key string, base int, bitSize int) (int64, error)

GetHTTPParameterValueAsInt retrieves the value of a HTTP parameter as int64 (modifiable by bitSize parameter)

func GetHTTPParameterValueAsInt16

func GetHTTPParameterValueAsInt16(r *http.Request, key string) (int16, error)

GetHTTPParameterValueAsInt16 retrieves the value of a HTTP parameter as int16

func GetHTTPParameterValueAsInt32

func GetHTTPParameterValueAsInt32(r *http.Request, key string) (int32, error)

GetHTTPParameterValueAsInt32 retrieves the value of a HTTP parameter as int32

func GetHTTPParameterValueAsInt64

func GetHTTPParameterValueAsInt64(r *http.Request, key string) (int64, error)

GetHTTPParameterValueAsInt64 retrieves the value of a HTTP parameter as int64 (modifiable by bitSize parameter)

func GetHTTPParameterValueAsInt8

func GetHTTPParameterValueAsInt8(r *http.Request, key string) (int8, error)

GetHTTPParameterValueAsInt8 retrieves the value of a HTTP parameter as int8

func GetHTTPParameterValueAsUint

func GetHTTPParameterValueAsUint(r *http.Request, key string, base int, bitSize int) (uint64, error)

GetHTTPParameterValueAsUint retrieves the value of a HTTP parameter as uint64 (modifiable by bitSize parameter)

func GetHTTPParameterValueAsUint16

func GetHTTPParameterValueAsUint16(r *http.Request, key string) (uint16, error)

GetHTTPParameterValueAsUint16 retrieves the value of a HTTP parameter as uint16

func GetHTTPParameterValueAsUint32

func GetHTTPParameterValueAsUint32(r *http.Request, key string) (uint32, error)

GetHTTPParameterValueAsUint32 retrieves the value of a HTTP parameter as uint32

func GetHTTPParameterValueAsUint64

func GetHTTPParameterValueAsUint64(r *http.Request, key string) (uint64, error)

GetHTTPParameterValueAsUint64 retrieves the value of a HTTP parameter as uint64 (modifiable by bitSize parameter)

func GetHTTPParameterValueAsUint8

func GetHTTPParameterValueAsUint8(r *http.Request, key string) (uint8, error)

GetHTTPParameterValueAsUint8 retrieves the value of a HTTP parameter as uint8

func GetValuesOfHTTPParameters

func GetValuesOfHTTPParameters(r *http.Request, keys []string) map[string]string

GetValuesOfHTTPParameters retrieves the value of http parameters as key value

func WriteBadRequest

func WriteBadRequest(w http.ResponseWriter, message string)

WriteBadRequest writes the bad request http response

func WriteBadRequestWithError

func WriteBadRequestWithError(w http.ResponseWriter, err error)

WriteBadRequestWithError writes the bad request http response

func WriteHTTPResponseAsJSON

func WriteHTTPResponseAsJSON(w http.ResponseWriter, v interface{})

WriteHTTPResponseAsJSON writes the http response as a json object

Types

This section is empty.

Jump to

Keyboard shortcuts

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