pub struct ReqwestDocumentFetch { /* private fields */ }Expand description
A aph_core::discovery::ports::DidDocumentFetch over reqwest, with
all five SSRF controls applied.
Implementations§
Trait Implementations§
Source§impl Clone for ReqwestDocumentFetch
impl Clone for ReqwestDocumentFetch
impl Copy for ReqwestDocumentFetch
Source§impl Debug for ReqwestDocumentFetch
impl Debug for ReqwestDocumentFetch
Source§impl Default for ReqwestDocumentFetch
impl Default for ReqwestDocumentFetch
Source§impl DidDocumentFetch for ReqwestDocumentFetch
impl DidDocumentFetch for ReqwestDocumentFetch
Source§fn fetch_did_document<'a>(&'a self, url: &'a str) -> DiscoveryFuture<'a, String>
fn fetch_did_document<'a>(&'a self, url: &'a str) -> DiscoveryFuture<'a, String>
Fetches url under the five controls and returns the body unparsed.
url is taken AS DERIVED. DidUrl::web_document_url already encoded
the colon-to-path-segment mapping, the /.well-known/ special case and
the percent-decode ordering that keeps a %3A-written port attached to
its host; re-deriving here would get one of them wrong, and a wrong
document that happens to parse yields a wrong key rather than an error.
§Errors
APH_E008, always the same bare value — see the module note on
control 5.
Auto Trait Implementations§
impl Freeze for ReqwestDocumentFetch
impl RefUnwindSafe for ReqwestDocumentFetch
impl Send for ReqwestDocumentFetch
impl Sync for ReqwestDocumentFetch
impl Unpin for ReqwestDocumentFetch
impl UnsafeUnpin for ReqwestDocumentFetch
impl UnwindSafe for ReqwestDocumentFetch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more