Repository Analysis

hyperium/hyper

An HTTP library for Rust

4.5 Likely human-written View on GitHub
4.5
Adjusted Score
4.5
Raw Score
100%
Time Factor
2026-05-30
Last Push
16,109
Stars
Rust
Language
29,837
Lines of Code
117
Files
134
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 134

Pattern Findings

134 matches across 2 categories. Click a row to expand file-level details.

Over-Commented Block132 hits · 132 pts
SeverityFileLineSnippet
LOWcapi/examples/upload.c1#include <stdlib.h>
LOWcapi/examples/client.c1#include <stdlib.h>
LOWtests/client.rs3161 async fn h2_idle_stream_does_not_pin_connection_window() {
LOWexamples/params.rs21static NOTNUMERIC: &[u8] = b"Number field is not numeric";
LOWexamples/hello-http2.rs61 // .await point allows the Tokio runtime to pull the task off of the thread until the task
LOWexamples/single_threaded.rs1#![deny(warnings)]
LOWbenches/connect.rs1#![feature(test)]
LOWbenches/connect.rs21// .expect("rt build");
LOWsrc/upgrade.rs1//! HTTP Upgrades.
LOWsrc/upgrade.rs21//! either the appropriate method, if wanting to `CONNECT`, or headers such as
LOWsrc/upgrade.rs61/// was used to speak HTTP before the upgrade. It can be used directly
LOWsrc/upgrade.rs81/// HTTP state machine may have already read before completing an upgrade.
LOWsrc/error.rs1//! Error and Result module.
LOWsrc/error.rs21/// is unspecified. **You must not depend on it.** The wording and details may
LOWsrc/error.rs141 ))]
LOWsrc/error.rs161 /// The dispatch task is gone.
LOWsrc/error.rs201 /// reason phrase.
LOWsrc/error.rs221 /// `content-length` and `transfer-encoding`).
LOWsrc/error.rs261 ///
LOWsrc/lib.rs1#![deny(missing_docs)]
LOWsrc/lib.rs21//!
LOWsrc/lib.rs41//! # Optional Features
LOWsrc/lib.rs61//! [feature flags]: https://doc.rust-lang.org/cargo/reference/manifest.html#the-features-section
LOWsrc/lib.rs81//! # Stability
LOWsrc/ext/h1_reason_phrase.rs1use bytes::Bytes;
LOWsrc/ext/h1_reason_phrase.rs21/// // Print out the non-canonical reason phrase, if it has one...
LOWsrc/ext/informational.rs1use std::sync::Arc;
LOWsrc/ext/mod.rs1//! Extensions for HTTP messages in Hyper.
LOWsrc/ext/mod.rs21//! // use the extension
LOWsrc/ext/mod.rs61#[cfg(all(feature = "http1", feature = "client"))]
LOWsrc/ext/mod.rs141/// [`preserve_header_case`] was set to true and the response included
LOWsrc/ext/mod.rs201#[cfg(feature = "ffi")]
LOWsrc/ext/mod.rs261 /// # Examples
LOWsrc/ext/mod.rs281 /// h_map.append(name3, value3);
LOWsrc/body/incoming.rs41///
LOWsrc/body/incoming.rs81///
LOWsrc/body/incoming.rs401 tx.send(trailers).map_err(|_| crate::Error::new_closed())
LOWsrc/body/mod.rs1//! Streaming bodies for Requests and Responses.
LOWsrc/server/mod.rs1//! HTTP Server.
LOWsrc/server/conn/http2.rs21pin_project! {
LOWsrc/server/conn/http2.rs121 }
LOWsrc/server/conn/http2.rs141 /// See <https://rustsec.org/advisories/RUSTSEC-2024-0003.html> for more information.
LOWsrc/server/conn/http2.rs221 /// connection alive.
LOWsrc/server/conn/mod.rs1//! Server connection API.
LOWsrc/server/conn/http1.rs41 S: HttpService<IncomingBody>,
LOWsrc/server/conn/http1.rs81 max_buf_size: Option<usize>,
LOWsrc/server/conn/http1.rs141 /// Return the inner IO object, and additional information.
LOWsrc/server/conn/http1.rs161 ///
LOWsrc/server/conn/http1.rs301 /// Default is `false`.
LOWsrc/server/conn/http1.rs321 self
LOWsrc/server/conn/http1.rs341
LOWsrc/server/conn/http1.rs361 /// support vectored writes well, such as most TLS implementations.
LOWsrc/server/conn/http1.rs421 /// driven on the connection.
LOWsrc/rt/timer.rs1//! Provides a timer trait with timer-like functions.
LOWsrc/rt/timer.rs21//! inner: tokio::time::sleep(duration),
LOWsrc/rt/timer.rs41//! pub(crate) inner: tokio::time::Sleep,
LOWsrc/rt/io.rs1use std::fmt;
LOWsrc/rt/io.rs21// While in here, if there's small tweaks to poll_read or poll_write that would
LOWsrc/rt/io.rs41/// struct MyReader {
LOWsrc/rt/io.rs61/// // Use put_slice to safely copy data and advance the cursor
72 more matches not shown…
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOWexamples/upgrades.rs110 // Don't forget to enable upgrades on the connection.
LOWexamples/upgrades.rs163 // Don't forget to enable upgrades on the connection.