Skip to main content

upstream_request

Function upstream_request 

Source
fn upstream_request(
    request: Request,
    root: Root,
    auth: &Auth,
    signed: Option<&CanonicalJsonValue>,
) -> Result<Request<Bytes>>
Expand description

The request sent on to the appservice, before its credentials are added.

The path is the original raw one. A client request’s body goes as received; a federation request’s goes as the canonical content its signature covered, so the appservice reads what was verified. The caller’s access token, cookies, other headers and any header its Connection names stay here; the identity it authenticated as rides in an MSC4512 header.