opendal_core/raw/http_util/
mod.rs

1// Licensed to the Apache Software Foundation (ASF) under one
2// or more contributor license agreements.  See the NOTICE file
3// distributed with this work for additional information
4// regarding copyright ownership.  The ASF licenses this file
5// to you under the Apache License, Version 2.0 (the
6// "License"); you may not use this file except in compliance
7// with the License.  You may obtain a copy of the License at
8//
9//   http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing,
12// software distributed under the License is distributed on an
13// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14// KIND, either express or implied.  See the License for the
15// specific language governing permissions and limitations
16// under the License.
17
18//! http_util contains the util types and functions that used across OpenDAL.
19//!
20//! # NOTE
21//!
22//! This mod is not a part of OpenDAL's public API. We expose them out to make
23//! it easier to develop services and layers outside opendal.
24
25mod client;
26pub use client::AccessorInfoHttpSend;
27/// temporary client used by several features
28#[allow(unused_imports)]
29pub use client::GLOBAL_REQWEST_CLIENT;
30pub use client::HttpClient;
31pub use client::HttpFetch;
32pub use client::HttpFetcher;
33
34mod body;
35pub use body::HttpBody;
36
37mod header;
38pub use header::build_header_value;
39pub use header::format_authorization_by_basic;
40pub use header::format_authorization_by_bearer;
41pub use header::format_content_md5;
42pub use header::format_content_md5_iter;
43pub use header::parse_content_disposition;
44pub use header::parse_content_encoding;
45pub use header::parse_content_length;
46pub use header::parse_content_md5;
47pub use header::parse_content_range;
48pub use header::parse_content_type;
49pub use header::parse_etag;
50pub use header::parse_header_to_str;
51pub use header::parse_into_metadata;
52pub use header::parse_last_modified;
53pub use header::parse_location;
54pub use header::parse_multipart_boundary;
55pub use header::parse_prefixed_headers;
56
57mod uri;
58pub use uri::QueryPairsWriter;
59pub use uri::new_http_uri_invalid_error;
60pub use uri::percent_decode_path;
61pub use uri::percent_encode_path;
62
63mod error;
64pub use error::new_request_build_error;
65pub use error::new_request_credential_error;
66pub use error::new_request_sign_error;
67pub use error::with_error_response_context;
68
69mod bytes_range;
70pub use bytes_range::BytesRange;
71
72mod bytes_content_range;
73pub use bytes_content_range::BytesContentRange;
74
75mod multipart;
76pub use multipart::FormDataPart;
77pub use multipart::MixedPart;
78pub use multipart::Multipart;
79pub use multipart::Part;
80pub use multipart::RelatedPart;