-
Notifications
You must be signed in to change notification settings - Fork 156
New Fetch API #353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Fetch API #353
Conversation
d49962d
to
480537c
Compare
ea6dacb
to
3f7c1a7
Compare
//! | ||
//! There is one entry point: [`fetch`][fetch] function. | ||
//! It can accept both, String urls as well as [`Request`][request]. | ||
//! It can accept both, string urls as well as [`Request`][request]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor grammar quibble, no comma needed after "... accept both, "
|
||
let token = "YWxhZGRpbjpvcGVuc2VzYW1l"; | ||
// Created outside async block because of lifetime reasons | ||
// (we can't use reference to `model.from` in async |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// (we can't use reference to `model.from` in async | |
// (we can't use reference to `model.form` in async |
let token = "YWxhZGRpbjpvcGVuc2VzYW1l"; | ||
// Created outside async block because of lifetime reasons | ||
// (we can't use reference to `model.from` in async | ||
// function). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it on the standalone line because of GitHub weird line breaks or Rust formatter?
So user can easily use `future.map` and `future.and_then`
Closing in favor of PR #402 |
No description provided.