api_testing.go 275 B

1234567891011
  1. package api
  2. import "net/http"
  3. const sampleShort = "short"
  4. const sampleTarget = "http://example.com/"
  5. // Use the special case of ErrUseLastResponse to ignore redirects.
  6. func doNotFollowRedirects(_ *http.Request, _ []*http.Request) error {
  7. return http.ErrUseLastResponse
  8. }