http-type 3.68.0

A library providing essential types for HTTP, including request bodies, response headers, and other core HTTP abstractions.
Documentation
1
2
3
4
5
6
7
use crate::*;

pub fn get_thread_count() -> usize {
    available_parallelism()
        .map(|count| count.get())
        .unwrap_or_else(|_| num_cpus::get())
}