mr

mithril-requests

Adds sugar http methods to Mithril.js

Showing:

Popularity

Downloads/wk

3

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.4KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Mithril Requests

Creates sugar http methods for Mithril.js existing request library

version License Build Status Downloads Code Climate Coverage Status Dependencies

Install

Setup

var m = require('mithril')
var requests = require('mithril-requests')

m = 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

m.request.get('mockbin.com/request').then(function (value) {
  console.log(value)
})

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100