Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Nov 7, 2024
1 parent b3eb028 commit 70bdb5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn main() {

## Features

Astra supports both HTTP/1 and HTTP/2 with most the configuration options that Hyper exposes. Features that depend on Tokio however, such as [`http2_keep_alive_while_idle`](https://docs.rs/hyper/latest/hyper/client/struct.Builder.html#method.http2_keep_alive_while_idle), are not supported and blocked on [better hyper support](https://github.com/hyperium/hyper/issues/2846).
Astra supports both HTTP/1 and HTTP/2 with most the configuration options that Hyper exposes. Features that depend on timers however, such as [`http2_keep_alive_while_idle`](https://docs.rs/hyper/latest/hyper/client/conn/http2/struct.Builder.html#method.keep_alive_while_idle), are currently unsupported.

Astra is currently an HTTP *server* library only. The client API is unimplemented.

Expand Down
7 changes: 3 additions & 4 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,14 @@ impl Iterator for Body {
}

loop {
let result = executor::Parker::new().block_on(FrameFuture(Pin::new(&mut self.0)));
let result = executor::Parker::new().block_on(FrameFuture(Pin::new(&mut self.0)))?;

return match result {
Some(Ok(frame)) => match frame.into_data() {
Ok(frame) => match frame.into_data() {
Ok(bytes) => Some(Ok(bytes)),
Err(_) => continue,
},
Some(Err(err)) => Some(Err(err)),
None => None,
Err(err) => Some(Err(err)),
};
}
}
Expand Down

0 comments on commit 70bdb5d

Please sign in to comment.