123456789101112131415161718192021222324252627282930313233343536373839404142(* This file is part of Dream, released under the MIT license. See LICENSE.md
for details, or visit https://github.com/aantron/dream.
Copyright 2021 Anton Bachin *)moduleDream=structincludeDream__pure.InmostmoduleLog=Logendtypeerror={condition:[|`ResponseofDream.response|`Stringofstring|`Exnofexn];layer:[|`TLS|`HTTP|`HTTP2|`WebSocket|`App];(* TODO Any point in distinguishing HTTP and HTTP2 errors? *)caused_by:[|`Server|`Client];request:Dream.requestoption;response:Dream.responseoption;client:stringoption;severity:Dream.Log.log_level;debug:bool;will_send_response:bool;}typeerror_handler=error->Dream.responseoptionLwt.t