Request.uri and Request.body still need to be marshaled into an http library's client. In working through the issue with a dev, I think it would be more ergonomic to just return (uri: Uri, body: Vec<u8>)
After seeing the tuple solution in practice, I think it would make more sense to name context as a field in Request and have create_pj_request return Request instead of (Request, Context). tuples are not as intuitive since they lack the documentation in the form of a name or a docstring
Request.uri and Request.body still need to be marshaled into an http library's client. In working through the issue with a dev, I think it would be more ergonomic to just return(uri: Uri, body: Vec<u8>)After seeing the tuple solution in practice, I think it would make more sense to name context as a field in
Requestand havecreate_pj_requestreturnRequestinstead of(Request, Context). tuples are not as intuitive since they lack the documentation in the form of a name or a docstring