Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Body ¶
type Body interface {
io.Reader
Body() streams.ReadableStream
}
Body represents the Body IDL mixin defined in the fetch API.
type Fetch ¶
type Fetch struct {
BrowsingContext html.BrowsingContext
}
func New ¶
func New(bc html.BrowsingContext) Fetch
func (Fetch) NewRequest ¶
func (f Fetch) NewRequest(url string, opts ...RequestOption) Request
type HeaderOption ¶ added in v0.9.2
type HeaderOption interface{}
type ReadableStream ¶
func (ReadableStream) GetReader ¶
func (s ReadableStream) GetReader(opts ...streams.GetReaderOption) streams.Reader
type RequestOption ¶
type RequestOption func(*Request)
func WithBody ¶ added in v0.9.2
func WithBody(b io.Reader) RequestOption
func WithMethod ¶ added in v0.9.2
func WithMethod(m string) RequestOption
func WithSignal ¶
func WithSignal(s *dom.AbortSignal) RequestOption
Click to show internal directories.
Click to hide internal directories.