tammy-adapter-xhr
v1.0.2
Published
A progressive HTTP client for the browser.
Downloads
15
Maintainers
Readme
Tammy // xhr
Note: xhr adapter
Installation
Load tammy
via classical <script>
tag
<script src="//cdn.jsdelivr.net/npm/tammy/umd.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/tammy-adapter-xhr/umd.min.js"></script>
tammy.http.install(tammyAdapterXhr);
CommonJS style with npm
npm install tammy --save
# for the browser
npm install tammy-adapter-xhr --save
// es6
import { http } from 'tammy';
import xhr from 'tammy-adapter-xhr';
http.defaults.adapter = xhr;