poem
poem copied to clipboard
A full-featured and easy-to-use web framework with the Rust programming language.
How should a redirect be done with poem_openapi? Error: `poem::Response` and `poem_openapi::payload::Response` have similar names, but are actually distinct types In: ```rust #[poem_openapi::OpenApi] impl IndexApi { #[oai(path = "/", method...
Close #824 ---------------- This is a simple fix of this bug, which is more suitable as a default behavior of `EmbeddedFilesEndpoint`. Its basic logic is: First: `let path = req.uri().path().trim_start_matches('/');`...
I have the following two files at the same level of Cargo.toml: ``` static/index.html static/test/index.html ``` Then I wrote the following code: ``` use poem::{endpoint::EmbeddedFilesEndpoint, listener::TcpListener, Route, Server}; use rust_embed::RustEmbed;...
## Description of the feature Hi, would be possible to add attribute security_scheme for generating swagger-ui security scheme without need to have it as a fn param? I have several...
## Expected Behavior https://github.com/poem-web/poem/compare/master...vpikulik:poem:union_is_object_type ## Actual Behavior ``` $ -> cargo check Checking example-openapi-union v0.1.0 (/Users/promo/wd/poem/examples/openapi/union) error[E0277]: the trait bound `MyObj: IsObjectType` is not satisfied --> openapi/union/src/main.rs:25:8 | 25 |...
When I build a serverless application according to Poem's lambda sample program + AWS SAM, it compiles normally and cannot be accessed through the URL after deployment. AWS API Gateway...
## Description of the feature This code snippet: ```rust #[handler] async fn query( Json(query): Json, ) -> String { query.query } ``` would be expanded to: ```rust #[allow(non_camel_case_types)] struct query;...
Hello, When the browser requests compression with Brotli, the algo used by poem is very slow to generate the compression, taking 11s just to compress the swagger UI page. it's...
Updates the requirements on [rcgen](https://github.com/rustls/rcgen) to permit the latest version. Commits 6432225 rcgen: 0.13.0 -> 0.13.1 76ec87a docs: update CHANGELOG for 0.13.1 72714e5 cert: use key_identifier_method of issuer for AKI...
## Description of the feature Moving from usage of `serde_json` crate to some other faster json serialization/deserialization library. Alternatives: - [`simd-json`](https://github.com/simd-lite/simd-json) - [`sonic-rs`](https://github.com/cloudwego/sonic-rs)