Documentation ¶ Overview ¶ Package cancellable provides helper function to cancel http requests. Index ¶ func Do(ctx context.Context, client transport.Sender, req *http.Request) (*http.Response, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Do ¶ func Do(ctx context.Context, client transport.Sender, req *http.Request) (*http.Response, error) Do sends an HTTP request with the provided transport.Sender and returns an HTTP response. If the client is nil, http.DefaultClient is used. If the context is canceled or times out, ctx.Err() will be returned. Types ¶ This section is empty. Source Files ¶ View all Source files cancellable.go Click to show internal directories. Click to hide internal directories.