[−][src]Trait ruma_api::IncomingRequest
A request type for a Matrix API endpoint. (trait used for receiving requests)
Associated Types
type EndpointError: EndpointError
[src]
A type capturing the error conditions that can be returned in the response.
type OutgoingResponse: TryInto<Response<Vec<u8>>, Error = IntoHttpError>
[src]
Response type to return when the request is successful.
Associated Constants
Loading content...Required methods
pub fn try_from_http_request(
req: Request<Vec<u8>>
) -> Result<Self, FromHttpRequestError>
[src]
req: Request<Vec<u8>>
) -> Result<Self, FromHttpRequestError>
Tries to turn the given http::Request
into this request type.