Documentation
¶
Index ¶
- Variables
- func ApplyConfiguredHeaders(req *http.Request)
- func Decode(res *http.Response) ([]byte, error)
- func DecodeWithLimit(res *http.Response, maxBytes int64) ([]byte, error)
- func DoRequestWithOptions(cl *http.Client, rq *http.Request, op RequestOptions) ([]byte, int, error)
- func DownloadToFile(cl *http.Client, rq *http.Request, dst string, max int64) (int64, int, error)
- func DownloadToFileWithTimeout(cl *http.Client, rq *http.Request, dst string, max int64, per time.Duration) (int64, int, error)
- func Head(cl *http.Client, raw, ref string) (http.Header, int64, string, int, error)
- func InferExt(ct, raw, mt string) string
- func NewInspectorTransport(base http.RoundTripper, logPath string, hideSensitive bool) (http.RoundTripper, error)
- func StreamDecode(res *http.Response) (io.ReadCloser, error)
- type DebouncedFn
- type GraphQLGetClient
- type GraphQLGetOptions
- type GraphQLGetResponse
- type HeaderEntry
- type InspectorTransport
- type RequestOptions
- type RequestOptionsRuntime
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNot2xx = errors.New("non-2xx response")
Functions ¶
func ApplyConfiguredHeaders ¶
func DoRequestWithOptions ¶
func DownloadToFile ¶
func NewInspectorTransport ¶
func NewInspectorTransport(base http.RoundTripper, logPath string, hideSensitive bool) (http.RoundTripper, error)
func StreamDecode ¶
func StreamDecode(res *http.Response) (io.ReadCloser, error)
Types ¶
type DebouncedFn ¶
type DebouncedFn[T any] struct { // contains filtered or unexported fields }
func NewDebouncedFn ¶
func NewDebouncedFn[T any](interval time.Duration, leading bool, fn func(T)) *DebouncedFn[T]
func (*DebouncedFn[T]) Call ¶
func (d *DebouncedFn[T]) Call(arg T)
type GraphQLGetClient ¶
type GraphQLGetClient struct {
// contains filtered or unexported fields
}
func NewGraphQLGetClient ¶
func (*GraphQLGetClient) Do ¶
func (c *GraphQLGetClient) Do(ctx context.Context, opt GraphQLGetOptions) (*GraphQLGetResponse, error)
type GraphQLGetOptions ¶
type GraphQLGetResponse ¶
type HeaderEntry ¶
type InspectorTransport ¶
type InspectorTransport struct {
// contains filtered or unexported fields
}
type RequestOptions ¶
type RequestOptionsRuntime ¶
Click to show internal directories.
Click to hide internal directories.