hyper-rustls 0.26 (#519)

* hyper-rustls 0.25

This isn't worth it until our dependencies update to rustls 0.22 as well.

* hyper-rustls 0.26 and hyper 1.0
This commit is contained in:
Luke Parker
2024-01-16 19:32:30 -05:00
committed by GitHub
parent 6691f16292
commit 9d3d47fc9f
5 changed files with 457 additions and 335 deletions

View File

@@ -1,14 +1,15 @@
use hyper::{
StatusCode,
header::{HeaderValue, HeaderMap},
body::{HttpBody, Buf, Body},
body::{Buf, Incoming},
};
use http_body_util::BodyExt;
use crate::{Client, Error};
// Borrows the client so its async task lives as long as this response exists.
#[derive(Debug)]
pub struct Response<'a>(pub(crate) hyper::Response<Body>, pub(crate) &'a Client);
pub struct Response<'a>(pub(crate) hyper::Response<Incoming>, pub(crate) &'a Client);
impl<'a> Response<'a> {
pub fn status(&self) -> StatusCode {
self.0.status()