Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an HTTP client.
func (*Client) HTTPClient ¶ added in v0.12.2
HTTPClient returns *http.Client.
type ClientOption ¶ added in v0.12.1
type ClientOption func(*Client)
ClientOption is a type that represents an optional function.
func WithBinding ¶ added in v0.12.1
func WithBinding(bind js.Value) ClientOption
WithBinding changes the objects that Fetch API belongs to. This is useful for service bindings, mTLS, etc.
type Request ¶
Request represents an HTTP request and is part of the Fetch API. Docs: https://developers.cloudflare.com/workers/runtime-apis/request/
Click to show internal directories.
Click to hide internal directories.