Trait ruma::api::OutgoingRequestAppserviceExt[][src]

pub trait OutgoingRequestAppserviceExt: OutgoingRequest {
    fn try_into_http_request_with_user_id<T>(
        base_url: &str,
        access_token: SendAccessToken<'_>,
        user_id: UserId
    ) -> Result<Request<T>, IntoHttpError>
        T: Default + BufMut
, { ... } }
This is supported on crate feature api only.
Expand description

An extension to OutgoingRequest which provides Appservice specific methods.

Provided methods

Tries to convert this request into an http::Request and appends a virtual user_id to assert Appservice identity.