Skip to main content

http_request/
lib.rs

1mod common;
2mod request;
3mod response;
4mod utils;
5
6pub use {request::*, response::*};
7
8pub use http_type::{
9    ACCEPT, ACCEPT_ANY, BR_BYTES, COLON_U8, CONTENT_LENGTH, CONTENT_TYPE, Compress, ContentType,
10    HOST, HTTP_BR_BYTES, HTTPS_LOWERCASE, HashMapXxHash3_64, HttpStatus, HttpUrlComponents,
11    HttpVersion, LOCATION, Method, Protocol, QUERY, RequestError, RequestHeadersKey,
12    RequestHeadersValue, ResponseStatusCode, SPACE_U8, TAB_U8, USER_AGENT, hash_map_xx_hash3_64,
13};
14
15pub use std::{
16    collections::{HashMap, HashSet, VecDeque},
17    fmt::{self, Display, Formatter},
18    io::{Read, Write},
19    net::{Ipv4Addr, Ipv6Addr, TcpStream},
20    pin::Pin,
21    str::from_utf8,
22    string::FromUtf8Error,
23    sync::Arc,
24    task::{Context, Poll},
25    time::Duration,
26    vec::IntoIter,
27};
28
29pub use {
30    http_type::tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt, ReadBuf},
31    rustls::{
32        ClientConfig, ClientConnection, RootCertStore, StreamOwned,
33        pki_types::{InvalidDnsNameError, ServerName},
34    },
35    serde::Serialize,
36    tokio_rustls::TlsConnector,
37    webpki_roots::TLS_SERVER_ROOTS,
38};
39
40use common::*;
41use lombok_macros::*;