util: move Structured Values parser to http module

main
anna 1 year ago
parent 88b7268dcc
commit ea7af860b2
Signed by: fef
GPG Key ID: EC22E476DC2D3D84

@ -12,7 +12,7 @@ use mime::Mime;
use reqwest::header::HeaderValue;
use std::str::FromStr;
use crate::util::header::{Item, ParseHeader, ParseOptions};
use crate::util::http::header::{Item, ParseHeader, ParseOptions};
/// Helper structure for parsing the `Content-Type` header for JSON-LD.
pub struct ContentType {

@ -12,7 +12,7 @@ use iref::{IriRef, IriRefBuf};
use reqwest::header::HeaderValue;
use std::str::FromStr;
use crate::util::header::{Item, ParseHeader, ParseOptions};
use crate::util::http::header::{Item, ParseHeader, ParseOptions};
pub struct Link {
href: IriRefBuf,

@ -6,6 +6,9 @@ use crate::core::*;
use crate::state::AppState;
use crate::util::bear::Bearcap;
/// Almost complete implementation of [RFC 8941](https://www.rfc-editor.org/info/rfc8941).
pub mod header;
pub enum Response {
Reqwest(reqwest::Response),
}

@ -1,12 +1,16 @@
/// Bearer Capabilities implementation, see <https://docs.joinmastodon.org/spec/bearcaps/>.
pub mod bear;
/// RSA key and signature management stuff.
pub mod crypto;
/// Almost complete implementation of [RFC 8941](https://www.rfc-editor.org/info/rfc8941).
pub mod header;
/// Wrappers for [`reqwest`].
/// Utilities related to HTTP.
pub mod http;
/// Password hashing facilities and types.
pub mod password;
/// Cursor utilities for parsers.
pub mod slice;
/// Wrappers for [`jsonwebtoken`].
pub mod token;
/// Wrappers for various encoding schemes.
pub mod transcode;
/// Validation framework.
pub mod validate;

Loading…
Cancel
Save