HTTP Handlers fail on non-string request bodies #4325
Replies: 2 comments 2 replies
-
This is related to a larger problem of users not being able to control their HTTP handlers' pipelines. The processing of a request to a user's HTTP handler is largely affected by logic within BwdServer and the HTTP Middleware. This includes the deserialization of request data, interpretation of content types, the serialization of responses, etc. While the goal of this project is not to solve for this larger problem, any wins towards this would be worthwhile. |
Beta Was this translation helpful? Give feedback.
-
Is this an opportunity / appropriate time to add DByte as a type, and generally switch from DBytes to List throughout our code? |
Beta Was this translation helpful? Give feedback.
-
Currently, Dark HTTP handlers automatically convert request bodies into strings, even if it's not valid Unicode. This means users can't send bytes.
An immediate use case for a user sending bytes is to support static asset uploads in Dark, replacing the old/current OCaml-based upload. A good first goal here is to simply unblock this. (getting to 'good enough for internal use').
This discussion is largely happening in in a google doc. While Paul and I are largely communicating there, external feedback is welcome here.
Beta Was this translation helpful? Give feedback.
All reactions