Documentation ¶
Index ¶
- func Cacheable(hdr http.Header) (time.Duration, bool, error)
- func CopyRequest(r *http.Request) *http.Request
- func MergeQuery(u url.URL, q url.Values) url.URL
- func NewResourceLocation(reqURL *url.URL, id string) string
- func WriteError(w http.ResponseWriter, code int, msg string)
- type Client
- type HandlerClient
- type RequestRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyRequest ¶
CopyRequest returns a clone of the provided *http.Request. The returned object is a shallow copy of the struct and a deep copy of its Header field.
func MergeQuery ¶
MergeQuery appends additional query values to an existing URL.
func NewResourceLocation ¶
NewResourceLocation appends a resource id to the end of the requested URL path.
func WriteError ¶
func WriteError(w http.ResponseWriter, code int, msg string)
Types ¶
type HandlerClient ¶
type RequestRecorder ¶
Click to show internal directories.
Click to hide internal directories.