You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to mention the fact that in addition to using the FromRequest::extract method, you can also use the implementation of FromRequest for Option<T: FromRequest> if you have form data that may or may not exist.
You usually don't control the data being submitted, so it's pretty much always better to use Option<web::Form> rather than just having actix return "Content type error" to the user.
The text was updated successfully, but these errors were encountered:
It would be nice to mention the fact that in addition to using the
FromRequest::extract
method, you can also use the implementation ofFromRequest
forOption<T: FromRequest>
if you have form data that may or may not exist.You usually don't control the data being submitted, so it's pretty much always better to use
Option<web::Form>
rather than just having actix return "Content type error" to the user.The text was updated successfully, but these errors were encountered: