Mithril Requests
Creates sugar http methods for Mithril.js existing request library
Install
- Download the latest package
- NPM:
npm install mithril-requests
Setup
var m = var requests = m =
Documentation
m.request.verb(url[, options])
Sugar method to invoke an XHR request on the underlying m.request
method, fully supporting
all options with no difference in api other than seperating out the url
and method
values.
Example
mrequest
Verbs
This is an array of lowercased method names that are supported.
get
post
put
head
delete
options
trace
copy
lock
mkcol
move
purge
propfind
proppatch
unlock
report
mkactivity
checkout
merge
notify
subscribe
unsubscribe
patch
search
connect
License
Licensed under The MIT License.