mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 21:49:26 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user