pub struct HttpBuilder {
pub http_client: Client,
pub base_url: String,
pub base_request: BaseRequest,
}
Fields§
§http_client: Client
§base_url: String
§base_request: BaseRequest
Implementations§
Source§impl HttpBuilder
impl HttpBuilder
pub fn new() -> Self
pub fn with_base_url(self, base_url: String) -> Self
pub fn with_base_request(self, base_request: BaseRequest) -> Self
pub fn builder(self) -> Result<RequestBuilder>
Trait Implementations§
Source§impl Debug for HttpBuilder
impl Debug for HttpBuilder
Source§impl Default for HttpBuilder
impl Default for HttpBuilder
Source§fn default() -> HttpBuilder
fn default() -> HttpBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for HttpBuilder
impl !RefUnwindSafe for HttpBuilder
impl Send for HttpBuilder
impl !Sync for HttpBuilder
impl Unpin for HttpBuilder
impl !UnwindSafe for HttpBuilder
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