mirror of
https://github.com/Noratrieb/icefun.git
synced 2026-01-15 13:15:01 +01:00
loop
This commit is contained in:
parent
0b89e245d9
commit
e1ebd97c91
73 changed files with 3822 additions and 3822 deletions
|
|
@ -15,20 +15,20 @@ impl DecodedLength {
|
|||
pub(crate) fn new(len: u64) -> Self {
|
||||
loop {}
|
||||
}
|
||||
/// Takes the length as a content-length without other checks.
|
||||
///
|
||||
/// Should only be called if previously confirmed this isn't
|
||||
/// CLOSE_DELIMITED or CHUNKED.
|
||||
|
||||
|
||||
|
||||
|
||||
#[inline]
|
||||
#[cfg(feature = "http1")]
|
||||
pub(crate) fn danger_len(self) -> u64 {
|
||||
loop {}
|
||||
}
|
||||
/// Converts to an Option<u64> representing a Known or Unknown length.
|
||||
|
||||
pub(crate) fn into_opt(self) -> Option<u64> {
|
||||
loop {}
|
||||
}
|
||||
/// Checks the `u64` is within the maximum allowed for content-length.
|
||||
|
||||
#[cfg(any(feature = "http1", feature = "http2"))]
|
||||
pub(crate) fn checked_new(len: u64) -> Result<Self, crate::error::Parse> {
|
||||
loop {}
|
||||
|
|
@ -36,11 +36,11 @@ impl DecodedLength {
|
|||
pub(crate) fn sub_if(&mut self, amt: u64) {
|
||||
loop {}
|
||||
}
|
||||
/// Returns whether this represents an exact length.
|
||||
///
|
||||
/// This includes 0, which of course is an exact known length.
|
||||
///
|
||||
/// It would return false if "chunked" or otherwise size-unknown.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#[cfg(feature = "http2")]
|
||||
pub(crate) fn is_exact(&self) -> bool {
|
||||
loop {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue