Documentation
¶
Index ¶
- func DownloadToFile(dstPath string, resp *http.Response) error
- func Fetch(url string, timeoutSeconds int, setAuth func(*http.Request)) (*http.Response, error)
- func ForwardResponse(w http.ResponseWriter, resp *http.Response)
- func ParseFilename(resp *http.Response) (string, error)
- func SendFile(w http.ResponseWriter, filePath, outFilename string) error
- func WriteRecorder(rec *httptest.ResponseRecorder, w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardResponse ¶
func ForwardResponse(w http.ResponseWriter, resp *http.Response)
func WriteRecorder ¶
func WriteRecorder(rec *httptest.ResponseRecorder, w http.ResponseWriter)
WriteRecorder copies the contents of a ResponseRecorder to a ResponseWriter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.