pub struct HttpClient {}Expand description
Component responsible for handling HTTP requests and URL processing.
HttpClient encapsulates all HTTP-related functionality including URL extraction,
URL cleaning, and content fetching. This component reuses the original functions
Implementations§
Source§impl HttpClient
impl HttpClient
Sourcepub fn fetch_content_from_text(
&self,
text: &str,
http_config: HttpConfig,
) -> Vec<(String, String)>
pub fn fetch_content_from_text( &self, text: &str, http_config: HttpConfig, ) -> Vec<(String, String)>
pub async fn fetch_content_from_text_async<F, Fut>( &self, text: &str, http_config: HttpConfig, future: F, ) -> Result<(), Box<dyn Error>>
Trait Implementations§
Source§impl Default for HttpClient
impl Default for HttpClient
Source§fn default() -> HttpClient
fn default() -> HttpClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpClient
impl RefUnwindSafe for HttpClient
impl Send for HttpClient
impl Sync for HttpClient
impl Unpin for HttpClient
impl UnwindSafe for HttpClient
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