Anton Bachin

Results 136 issues of Anton Bachin

So, ```ocaml val put_flash : ?category:string -> string -> request -> unit ``` This allows two things: - `Dream.put_flash "just my message" request` is easier to do when getting started....

🎓 study

As maybe one of the most convenient "simple" ways to do a transaction with automatic rollback on failure. cc @thangngoc89

🎓 study

There is such a middleware in [dream-serve](https://github.com/aantron/dream-serve/blob/d0bcb33f499d461e89b9a663c62fdca54e70e465/dream_serve.ml#L132-L147): ```ocaml (* Redirect requests for directories to index.html. *) let index_html next_handler request = let rec is_directory path = match path with |...

`Dream.run`, if not called with `adjust_terminal:false`, sets some terminal settings, and then tries to restore them on exit (code below). - [ ] We have switched to Ctrl+C for exit....

good first issue

This could be useful sometimes, to use the same code that renders flash messages, to render some feedback that was generated during handling of the current request (rather than across...

⭐ good first issue
🎓 study

cc @thangngoc89

📚 docs
⭐ good first issue

...which sometimes clobbers exception logging output, especially since it itself sometimes raises exceptions as part of its control flow. Don't have an example ready ATM as I last observed this...

bug
upstream

This requires (probably) patching http/af and h2. At the moment, it is possible to open connections and never send any data. The connections remain open. Such connections never even reach...

🔒 security
🤷‍♀️ upstream

Some combination of: - [ ] A middleware that filters body chunks, accumulating their total length, and aborting responses if the length exceeds some limit. - [ ] File size...

🔒 security