Skip to content

Conversation

@Arpita-Jaiswal
Copy link
Contributor

No description provided.

}

impl FromRawRequest for ft_sdk::Connection {
fn from_request(_req: &http::Request<bytes::Bytes>) -> Result<Self, ft_sdk::Error> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not fond of this approach. Lets create our own type, so we can do:

fn from_request(_req: &http::Request<ft_sys::Body>) -> Result<Self, ft_sdk::Error> {}

And inside body we store Bytes. And we have a private .json which is a refcell option serde_json::value, and we compute it the first time it is accessed via public .json().

@amitu
Copy link
Contributor

amitu commented Jan 27, 2025

test comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants