Documentation ¶
Index ¶
Constants ¶
View Source
const UserAgent = "heresy-runtime/fetcher"
Variables ¶
View Source
var ErrUnsupportedReadableStream = fmt.Errorf("using custom ReadableStream as body is currently unsupported")
Functions ¶
This section is empty.
Types ¶
type Fetch ¶
type Fetch struct { FetchConfig // contains filtered or unexported fields }
func NewFetch ¶
func NewFetch(cfg FetchConfig) (*Fetch, error)
func (*Fetch) GetResponseHelper ¶
func (*Fetch) NewNativeFetchVM ¶
type FetchConfig ¶
type FetchConfig struct { Stream *stream.StreamController Eventloop *eventloop.EventLoop Client *http.Client }
func (*FetchConfig) Validate ¶
func (c *FetchConfig) Validate() error
type NativeFetchWrapper ¶
type NativeFetchWrapper struct {
// contains filtered or unexported fields
}
type NativeFetcher ¶
type NativeFetcher struct {
// contains filtered or unexported fields
}
func (*NativeFetcher) NativeFunc ¶
func (n *NativeFetcher) NativeFunc() goja.Value
Click to show internal directories.
Click to hide internal directories.