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 response_type: Option<String>,
}Expand description
Request
Request is an internal struct that is used by each OIDC protocol methods.
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
response_type: Option<String>Expected response type
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