pub struct UreqClient {
pub server_url: String,
}Expand description
Http client implementation relying on ureq.
Fields§
§server_url: StringThe base url of the HTTP server to reach.
Used as base url when calling UreqClient::get method.
Trait Implementations§
Source§impl Default for UreqClient
impl Default for UreqClient
Source§fn default() -> UreqClient
fn default() -> UreqClient
Returns the “default value” for a type. Read more
Source§impl HttpClient for UreqClient
impl HttpClient for UreqClient
Source§fn get(&self, url: &str) -> Result<String, ProgramExit>
fn get(&self, url: &str) -> Result<String, ProgramExit>
Make a GET HTTP call using a ureq client.
The server base url (i.e. https://localhost:8080) should be provided as part of `UreqClient::server_url field.
See HttpClient::get for more infos.
Auto Trait Implementations§
impl Freeze for UreqClient
impl RefUnwindSafe for UreqClient
impl Send for UreqClient
impl Sync for UreqClient
impl Unpin for UreqClient
impl UnwindSafe for UreqClient
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