Documentation
¶
Index ¶
- func GetHTTPParameterValue(r *http.Request, key string) (string, bool)
- func GetHTTPParameterValueAsInt(r *http.Request, key string, base int, bitSize int) (int64, error)
- func GetHTTPParameterValueAsInt16(r *http.Request, key string) (int16, error)
- func GetHTTPParameterValueAsInt32(r *http.Request, key string) (int32, error)
- func GetHTTPParameterValueAsInt64(r *http.Request, key string) (int64, error)
- func GetHTTPParameterValueAsInt8(r *http.Request, key string) (int8, error)
- func GetHTTPParameterValueAsUint(r *http.Request, key string, base int, bitSize int) (uint64, error)
- func GetHTTPParameterValueAsUint16(r *http.Request, key string) (uint16, error)
- func GetHTTPParameterValueAsUint32(r *http.Request, key string) (uint32, error)
- func GetHTTPParameterValueAsUint64(r *http.Request, key string) (uint64, error)
- func GetHTTPParameterValueAsUint8(r *http.Request, key string) (uint8, error)
- func GetValuesOfHTTPParameters(r *http.Request, keys []string) map[string]string
- func WriteBadRequest(w http.ResponseWriter, message string)
- func WriteBadRequestWithError(w http.ResponseWriter, err error)
- func WriteHTTPResponseAsJSON(w http.ResponseWriter, v interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHTTPParameterValue ¶
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 ¶
GetHTTPParameterValueAsInt retrieves the value of a HTTP parameter as int64 (modifiable by bitSize parameter)
func GetHTTPParameterValueAsInt16 ¶
GetHTTPParameterValueAsInt16 retrieves the value of a HTTP parameter as int16
func GetHTTPParameterValueAsInt32 ¶
GetHTTPParameterValueAsInt32 retrieves the value of a HTTP parameter as int32
func GetHTTPParameterValueAsInt64 ¶
GetHTTPParameterValueAsInt64 retrieves the value of a HTTP parameter as int64 (modifiable by bitSize parameter)
func GetHTTPParameterValueAsInt8 ¶
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 ¶
GetHTTPParameterValueAsUint16 retrieves the value of a HTTP parameter as uint16
func GetHTTPParameterValueAsUint32 ¶
GetHTTPParameterValueAsUint32 retrieves the value of a HTTP parameter as uint32
func GetHTTPParameterValueAsUint64 ¶
GetHTTPParameterValueAsUint64 retrieves the value of a HTTP parameter as uint64 (modifiable by bitSize parameter)
func GetHTTPParameterValueAsUint8 ¶
GetHTTPParameterValueAsUint8 retrieves the value of a HTTP parameter as uint8
func GetValuesOfHTTPParameters ¶
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.