mirror of
https://github.com/openharmony/third_party_rust_http.git
synced 2026-07-19 22:53:59 -04:00
fix doc
This commit is contained in:
+4
-4
@@ -1,7 +1,7 @@
|
||||
//! HTTP header types
|
||||
//!
|
||||
//! The module provides [`HeaderName`], [`HeaderMap`], and a number of types
|
||||
//! used for interacting with [`HeaderMap`]. These types allow representing both
|
||||
//! used for interacting with `HeaderMap`. These types allow representing both
|
||||
//! HTTP/1 and HTTP/2 headers.
|
||||
//!
|
||||
//! # `HeaderName`
|
||||
@@ -64,10 +64,10 @@
|
||||
//! `HeaderMap` can store a maximum of 32,768 headers (header name / value
|
||||
//! pairs). Attempting to insert more will result in a panic.
|
||||
//!
|
||||
//! [`HeaderName`]: #
|
||||
//! [`HeaderMap`]: #
|
||||
//! [`HeaderName`]: struct.HeaderName.html
|
||||
//! [`HeaderMap`]: struct.HeaderMap.html
|
||||
//! [multimap]: https://en.wikipedia.org/wiki/Multimap
|
||||
//! [`HashMap`]: #
|
||||
//! [`HashMap`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html
|
||||
//! [Robin Hood hashing]: https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing
|
||||
|
||||
mod map;
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ pub struct ToStrError {
|
||||
}
|
||||
|
||||
impl HeaderValue {
|
||||
/// Convert a static string to a `HeaderValue`
|
||||
/// Convert a static string to a `HeaderValue`.
|
||||
///
|
||||
/// This function will not perform any copying, however the string is
|
||||
/// checked to ensure that no invalid characters are present. Only visible
|
||||
|
||||
Reference in New Issue
Block a user