proxy.golang.org : github.com/rocketlaunchr/gopherjs-xhr
Package xhr provides GopherJS bindings for the XMLHttpRequest API. This package provides two ways of using XHR directly. The first one is via the Request type and the NewRequest function. This way, one can specify all desired details of the request's behaviour (timeout, response format). It also allows access to response details such as the status code. Furthermore, using this way is required if one wants to abort in-flight requests or if one wants to register additional event listeners. The other way is via the package function Send, which is a helper that internally constructs a Request and assigns sane defaults to it. It's the easiest way of doing an XHR request that should just return unprocessed data. If you don't need to/want to deal with the underlying details of XHR, you may also just use the net/http.DefaultTransport, which GopherJS replaces with an XHR-enabled version, making this package useless most of the time.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/rocketlaunchr/gopherjs-xhr
License: MIT
Latest release: over 5 years ago
First release: over 5 years ago
Namespace: github.com/rocketlaunchr
Stars: 4 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 20 days ago