pub struct FirecrawlClient { /* private fields */ }Expand description
Firecrawl API 客户端
支持多 token 轮换,适合免费套餐多账号场景。
Implementations§
Source§impl FirecrawlClient
impl FirecrawlClient
Sourcepub fn builder() -> FirecrawlClientBuilder
pub fn builder() -> FirecrawlClientBuilder
创建 Builder
Trait Implementations§
Source§impl HttpClient for FirecrawlClient
impl HttpClient for FirecrawlClient
Source§fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
_headers: &'life2 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
_headers: &'life2 HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
发送 GET 请求
Source§fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
headers: &'life2 HashMap<String, String>,
_body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn post<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
url: &'life1 str,
headers: &'life2 HashMap<String, String>,
_body: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
发送 POST 请求
Auto Trait Implementations§
impl Freeze for FirecrawlClient
impl RefUnwindSafe for FirecrawlClient
impl Send for FirecrawlClient
impl Sync for FirecrawlClient
impl Unpin for FirecrawlClient
impl UnsafeUnpin for FirecrawlClient
impl UnwindSafe for FirecrawlClient
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