Skip to main content

Module ruma_requests

Module ruma_requests 

Source
Expand description

Utilities when using ruma. Either they convert between ruma and axum, or they convert between the different representations of the same data that ruma has.

Structs§

ArminiusResponse
Custom response type, which wraps a ruma [ruma::api::OutgoingResponse], and provides [IntoResponse]
InvalidRequestPath
The user sent us an invalid request path, which we could not parse
OtherDeserializationError
The request was invalid for any other reason.
RequestTooLarge
RumaRequest
axum extractor that uses the path parameters and body to build a ruma request

Enums§

InputDeserializationError
ParseRequestError
RumaFromRequestError

Functions§

extract_ruma_request
Take an axum request, and turn it into a ruma request
to_vector_request
Takes a [axum::http::Request] object with a [Body] parameter, and converts it into one defined over a vector, which ruma likes better.