Update repo url, readme examples

This commit is contained in:
Aode (Lion) 2022-03-08 12:07:33 -06:00
parent a36f9a9411
commit 4cbc7cb78e
2 changed files with 4 additions and 4 deletions

View file

@ -1,10 +1,10 @@
[package]
name = "actix-form-data"
description = "Multipart Form Data for Actix Web"
version = "0.6.1"
version = "0.6.2"
license = "GPL-3.0"
authors = ["asonix <asonix@asonix.dog>"]
repository = "https://git.asonix.dog/Aardwolf/actix-form-data.git"
repository = "https://git.asonix.dog/asonix/actix-form-data.git"
readme = "README.md"
keywords = ["actix", "form-data", "multipart", "async"]
edition = "2021"

View file

@ -41,7 +41,7 @@ App::new()
In your handler, get the value
```rust
async fn upload(value: Value) -> {
async fn upload(uploaded_content: Value<()>) -> HttpResponse {
...
}
```
@ -67,7 +67,7 @@ use actix_web::{
web::{post, resource},
App, HttpResponse, HttpServer,
};
use futures::stream::StreamExt;
use futures_util::stream::StreamExt;
async fn upload(uploaded_content: Value<()>) -> HttpResponse {
println!("Uploaded Content: {:#?}", uploaded_content);