Quickstart
Quickstart
Installation
Or in the browser, using a cdn:
If you are using a cdn, and need the assert library or one of the default middleware plugins, use the dist/everything.js script instead:
MetroJS is also available on Github as https://github.com/muze-nl/metro/.
Posting form data
The metro client supports the post method using client.post():
The metro.formdata() method is a wrapper for the default FormData class, and accepts all of the parameters that the FormData constructor method accepts. In addition, you can also pass an object, as used in the example above.