responses

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AuthRequiredErrorMessage = "authentication required"

this is the message to show when authentication info is required but was not provided in the request this is NOT the message for when auth info is provided but is not correct

Variables

This section is empty.

Functions

func AddJSONContentType added in v0.13.3

func AddJSONContentType(w http.ResponseWriter)

AddJSONContentType prepares HTTP response writer for JSON content-type.

func JSONRPCSerialize added in v0.13.8

func JSONRPCSerialize(r *jsonrpc.RPCResponse) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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