1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#![no_std]
#![deny(missing_docs, rust_2018_idioms, unused_qualifications)]
#![forbid(unsafe_code)]
#![doc(html_root_url = "https://docs.rs/harp/0.1.0")]
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(any(feature = "std", test))]
#[macro_use]
extern crate std;
#[cfg(feature = "logger")]
#[macro_use]
extern crate slog;
#[macro_use]
pub mod error;
#[cfg(feature = "std")]
pub mod connection;
pub mod path;
#[cfg(feature = "alloc")]
pub mod request;
#[cfg(feature = "alloc")]
pub mod response;
#[cfg(feature = "std")]
pub use crate::connection::*;
pub use crate::error::*;
pub use crate::path::*;
pub const HTTP_VERSION: &str = "HTTP/1.1";
pub const USER_AGENT: &str = concat!("harp.rs ", env!("CARGO_PKG_VERSION"));