-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move contracts to ambient module
- Loading branch information
1 parent
f4e66d0
commit 20c001f
Showing
53 changed files
with
1,174 additions
and
6,363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
![](https://res.cloudinary.com/adonisjs/image/upload/q_100/v1558612869/adonis-readme_zscycu.jpg) | ||
|
||
AdonisJs BodyParser | ||
=================== | ||
|
||
> Bodyparser middleware to AdonisJs | ||
[![circleci-image](https://img.shields.io/circleci/project/github/adonisjs/adonis-bodyparser/master.svg?style=for-the-badge&logo=appveyor)](https://circleci.com/gh/adonisjs/adonis-bodyparser "circleci") [![npm-image](https://img.shields.io/npm/v/@adonisjs/bodyparser.svg?style=for-the-badge&logo=npm)](https://npmjs.org/package/@adonisjs/bodyparser "npm") ![](https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript) | ||
|
||
The BodyParser middleware parses the incoming HTTP requests body and files, so that you can access them using the `request` instance. The module is written specifically to work with AdonisJs only. | ||
|
||
Features | ||
-------- | ||
|
||
1. Support for `multipart/form-data`, `application/x-www-form-urlencoded` as well raw HTTP requests. | ||
2. Extensive support for JSON request body including `application/vnd.api+json`, `application/json-patch+json`, `application/csp-report` and `application/json` content type. | ||
3. Exposes API to stream file uploads without writing to the `tmp` directory. | ||
|
||
Usage | ||
----- | ||
|
||
Install the addon using `adonis cli` as follows: | ||
|
||
```sh | ||
adonis install @adonisjs/bodyparser | ||
``` | ||
|
||
The command will create the `config/bodyparser.ts` config file. Also, you can manually copy the [config from here](config/index.ts). | ||
|
||
## Index | ||
|
||
### External modules | ||
|
||
* ["adonis-typings/index"](modules/_adonis_typings_index_.md) | ||
* ["config/index"](modules/_config_index_.md) | ||
* ["lib/index"](modules/_lib_index_.md) | ||
* ["providers/BodyParserProvider"](modules/_providers_bodyparserprovider_.md) | ||
* ["src/BodyParser/index"](modules/_src_bodyparser_index_.md) | ||
* ["src/Contracts/index"](modules/_src_contracts_index_.md) | ||
* ["src/FormFields/index"](modules/_src_formfields_index_.md) | ||
* ["src/Multipart/File"](modules/_src_multipart_file_.md) | ||
* ["src/Multipart/index"](modules/_src_multipart_index_.md) | ||
* ["src/Multipart/processMultipart"](modules/_src_multipart_processmultipart_.md) | ||
* ["src/Multipart/streamFile"](modules/_src_multipart_streamfile_.md) | ||
|
||
--- | ||
|
Oops, something went wrong.