Documentation ¶
Overview ¶
Package request implements standardised ways of issuing outgoing calls to other servces.
Index ¶
Constants ¶
View Source
const (
GetRequestTimeout = time.Second * 10
)
Variables ¶
View Source
var ValidHTTPMethods = map[string]bool{ http.MethodConnect: true, http.MethodDelete: true, http.MethodGet: true, http.MethodHead: true, http.MethodOptions: true, http.MethodPatch: true, http.MethodPost: true, http.MethodPut: true, http.MethodTrace: true, }
Functions ¶
Types ¶
type CreateOptions ¶ added in v0.1.40
type CreateOptions struct { Body []byte Headers map[string][]string Method string Queries map[string][]string URL string }
CreateOptions provides the input to the Create method
Click to show internal directories.
Click to hide internal directories.