1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-22 01:21:10 +00:00

docs(multipart): use cargo-rdme

This commit is contained in:
Rob Ede 2024-06-10 23:35:26 +01:00
parent cc5030c542
commit 132b84d3b1
No known key found for this signature in database
GPG key ID: 97C636207D3EF933
3 changed files with 9 additions and 15 deletions

View file

@ -1,7 +1,5 @@
# `actix-multipart`
> Multipart form support for Actix Web.
<!-- prettier-ignore-start -->
[![crates.io](https://img.shields.io/crates/v/actix-multipart?label=latest)](https://crates.io/crates/actix-multipart)
@ -15,18 +13,13 @@
<!-- prettier-ignore-end -->
## Example
<!-- cargo-rdme start -->
Dependencies:
Multipart form support for Actix Web.
```toml
[dependencies]
actix-multipart = "0.6"
actix-web = "4.5"
serde = { version = "1.0", features = ["derive"] }
```
## Examples
Code:
[More available in the examples repo &rarr;](https://github.com/actix/examples/tree/master/forms/multipart)
```rust
use actix_web::{post, App, HttpServer, Responder};
@ -63,6 +56,8 @@ async fn main() -> std::io::Result<()> {
}
```
<!-- cargo-rdme end -->
Curl request :
```bash
@ -71,7 +66,3 @@ curl -v --request POST \
-F 'json={"name": "Cargo.lock"};type=application/json' \
-F file=@./Cargo.lock
```
### Examples
https://github.com/actix/examples/tree/master/forms/multipart

View file

@ -1,5 +1,7 @@
//! Multipart form support for Actix Web.
//!
//! # Examples
//!
//! ```no_run
//! use actix_web::{post, App, HttpServer, Responder};
//!

View file

@ -90,6 +90,7 @@ update-readmes: && fmt
cd ./actix-files && cargo rdme --force
cd ./actix-http-test && cargo rdme --force
cd ./actix-router && cargo rdme --force
cd ./actix-multipart && cargo rdme --force
cd ./actix-test && cargo rdme --force
# Check for unintentional external type exposure on all crates in workspace.