Closed YetAnotherMinion closed 5 years ago
Form get extracted from request payload.
You must use from_request method. https://github.com/actix/actix-web/blob/master/src/types/form.rs#L117
Thanks for the help!
I could not figure out how to construct a new actix_http::types::Payload enum from the actix_web::Payload extractor. However I found that I could use Result as an extractor in the arguments of a function and see the error message if the form failed to parse which is good enough for my use case.
You can access inner payload but change is not released yet
I am having trouble using the form extractor manually following the example on the actix.rs website. I get a Parse error when trying to extract a Form from a request inside my handler function. The Form works fine when it is used as an argument to the handler function.
The request to the handler that uses the Form as an argument succeeds:
The request to the handler than attempts to manually extract the Form fails.