# Functions
CheckGet checks if the incoming request is a GET request.
CheckHTTPSRedirect checks if HTTP requests are redirected to HTTPS on the same host.
CheckOrigin checks if the origin of the incoming request is localhost.
CheckPost checks whether the incoming request is a POST request.
CheckPut checks whether the incoming request is a PUT request.
Err prints an error and returns to the caller.
GetAndSendByte is a handler that makes a get request and returns byte data.
GetAndSendJson is a handler that makes a get request and returns json data.
GetRequest is a handler that makes it easy to send out GET requests.
HttpsGet is a function that should only be used on localhost with a client configured to accept a user generated cert.
HttpsPost is a function that should only be used on localhost with a client configured to accept a user generated cert.
HTTPSRedirect redirects servers to use https instead of http.
MarshalSend marshals and writes a json string.
PostForm is a handler that makes it easy to send out POST form requests.
PostRequest is a handler that makes it easy to send out POST requests.
PutAndSend is a handler that PUTs data and returns the response.
PutRequest is a handler that makes it easy to send out PUT requests.
ResponseHandler is the default response handler that sends out response codes on successful completion of certain calls.
SetConsts is used to set the timeout interval for requests made.
SetupBasicHandlers sets up two handler functions that serve ping and default response at /.
SetupDefaultHandler sets up the default handler (ie returns 404 for invalid routes).
SetupLocalHttpsClient can be used to setup a local client configured to accept a user generated cert.
SetupPingHandler is a ping route for remote callers to check if the platform is up.
WriteToHandler returns a reply to the passed writer.
# Constants
502 RFC 7231, 6.6.3.
400 RFC 7231, 6.5.1.
201 RFC 7231, 6.3.2.
504 RFC 7231, 6.6.5.
500 RFC 7231, 6.6.1.
423 RFC 4918, 11.3.
301 RFC 7231, 6.4.2.
406 RFC 7231, 6.5.6.
404 RFC 7231, 6.5.4.
200 RFC 7231, 6.3.1.
402 RFC 7231, 6.5.2.
503 RFC 7231, 6.6.4.
429 RFC 6585, 4.
401 RFC 7235, 3.1.
# Variables
TimeoutVal is the timeout associated with a single call.
# Structs
StatusResponse defines a generic status response structure.