pub struct HttpRequest {
pub url: Url,
pub method: HttpMethod,
pub headers: HashMap<String, Vec<String>>,
pub body: Option<String>,
pub mtls: bool,
pub client_certificate: Option<ClientCertificate>,
/* private fields */
}Expand description
§Request
Request is an internal struct used to create various OIDC requests.
Fields§
§url: UrlUrl of the request without query params
method: HttpMethodHttp method of the request
headers: HashMap<String, Vec<String>>Headers that are sent in the request
body: Option<String>The request body to be sent
mtls: boolSpecifies if the request is MTLS and needs client certificate
client_certificate: Option<ClientCertificate>Client certificate to be used in the request
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpRequest
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnwindSafe for HttpRequest
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