poem
poem copied to clipboard
A full-featured and easy-to-use web framework with the Rust programming language.
I created this example based on https://github.com/poem-web/poem/blob/master/examples/openapi/log-with-operation-id/src/main.rs: ```rust use time::OffsetDateTime; use poem::{listener::TcpListener, Endpoint, EndpointExt, Route, Server, Error}; use poem::http::StatusCode; use poem::middleware::Cors; use poem::web::Data; use poem_openapi::{param::Query, payload::PlainText, OpenApi, OpenApiService}; struct Api;...
I've defined a security schema that extracts a refresh token from the cookie. ```rust #[derive(SecurityScheme)] #[oai( type = "api_key", key_name = "refresh_token", in = "cookie", checker = "valid_refresh_token" )] pub...
## Description of the feature You can create request params by deriving from `Object` but you can not create custom errors yet, which are shown as errors in OpenApi and...
## Description of the feature It's common for pure HTTP servers to enforce redirect from HTTP to HTTPS after provisioning valid SSL certificates ## Code example (if possible) I believe...
Hi Background: I want to authenticate a client using the X509 certificate. For security reasons I need to have access to some fields in the cert and process them. I...
## Description of the feature For the request metrics, I see two labels that roughly do what I want: `http.url` and `http.path_pattern`.  `http.url` is to specific and includes the...
## Description of the feature I'm creating a poem app for a demo inside a devcontainer, and if the generated swagger document contains any Server elements, it's not possible to...
Would it be possible to generate an openapi description for "newtype" which contain only one field ?
## Description of the feature It is quite a useful construction to use newtype to specify e.g. ID. Unfortunately, the current implementation of the Object macro does not allow the...
## Expected Behavior Compile successfully ## Actual Behavior Failed, got: ``` higher-ranked lifetime error could not prove for std::pin::Pin: std::ops::CoerceUnsized Executor { unimplemented!() } } pub async fn save, {...
It would be nice if there was support for merging routes like Axum, this is especially usefull when breaking down routes in multiple modules. ## Description of the feature The...