Documentation ¶
Rendered for js/wasm
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTransport = func() RoundTripper { switch { case js.Global.Get("fetch") != js.Undefined: return &Transport{} case js.Global.Get("XMLHttpRequest") != js.Undefined: return &XHRTransport{} default: return noTransport{} } }()
Functions ¶
This section is empty.
Types ¶
type XHRTransport ¶
type XHRTransport struct {
// contains filtered or unexported fields
}
func (*XHRTransport) CancelRequest ¶
func (t *XHRTransport) CancelRequest(req *Request)
func (*XHRTransport) RoundTrip ¶
func (t *XHRTransport) RoundTrip(req *Request) (*Response, error)
Click to show internal directories.
Click to hide internal directories.