spire-core 0.3.0

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

mod meta;

use bytes::Bytes;
pub(crate) use meta::Meta;
pub use meta::{Attempt, Depth, RequestExt, ResponseExt, Tag, Tags};

/// An HTTP request, with its body in memory.
pub type Request<B = Bytes> = http::Request<B>;

/// An HTTP response, with its body in memory, or without one: a client
/// returns the head, `Response<()>`, and its body separately.
pub type Response<B = Bytes> = http::Response<B>;