Struct openid_client::types::Request
source · pub struct Request {
pub url: String,
pub expected: StatusCode,
pub method: Method,
pub expect_body: bool,
pub bearer: bool,
pub headers: HeaderMap,
pub search_params: HashMap<String, Vec<String>>,
pub json: Option<Value>,
pub form: Option<HashMap<String, Value>>,
pub body: Option<String>,
pub response_type: Option<String>,
pub mtls: bool,
}Expand description
Request
Request is an internal struct used to create various OIDC requests.
Fields§
§url: StringUrl of the request without query params
expected: StatusCodeExpected status code from the server
method: MethodHttp method of the request
expect_body: boolWhether or not to expect body with the response
bearer: boolSpecifies if the request is using bearer auth, and checks for bearer token related errors
headers: HeaderMapHeaders that are sent in the request
search_params: HashMap<String, Vec<String>>Query Params that are send with the request
json: Option<Value>The request body to be sent
form: Option<HashMap<String, Value>>The request form body to be sent
body: Option<String>The request body to be sent
response_type: Option<String>Expected response type
mtls: boolSpecifies if the request is MTLS and needs client certificate
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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