feat: add bounded binary API request bodies
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
use api_macros::api;
|
||||
|
||||
pub struct Response;
|
||||
|
||||
#[api]
|
||||
pub trait InvalidBinaryMethod {
|
||||
#[get("/payload")]
|
||||
async fn download(&self, #[binary] body: api_macros::BinaryBody) -> Response;
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user