spire-core 0.2.0

Core types and traits for Spire web scraping framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Requests, responses and their crawl metadata.

mod body;
mod meta;

pub use body::Body;
pub use meta::{Attempt, Depth, RequestExt, ResponseExt, Tag, Tags};

/// An HTTP request with a [`Body`].
pub type Request<B = Body> = http::Request<B>;

/// An HTTP response with a [`Body`].
pub type Response<B = Body> = http::Response<B>;