Trait ruma_api::OutgoingRequestAppserviceExt[][src]

pub trait OutgoingRequestAppserviceExt: OutgoingRequest {
    fn try_into_http_request_with_user_id(
        self,
        base_url: &str,
        access_token: Option<&str>,
        user_id: UserId
    ) -> Result<Request<Vec<u8>>, IntoHttpError> { ... } }

An extension to OutgoingRequest which provides Appservice specific methods

Provided methods

fn try_into_http_request_with_user_id(
    self,
    base_url: &str,
    access_token: Option<&str>,
    user_id: UserId
) -> Result<Request<Vec<u8>>, IntoHttpError>
[src]

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

Loading content...

Implementors

Loading content...