class Onyx::HTTP::Middleware::RequestID

Overview

Sets ::HTTP::Request#id and "X-Request-ID" header to a random UUID string. If a request has an ID, it's logged in Logger and Rescuers::Standard handlers.

Included Modules

Defined in:

onyx-http/middleware/request_id.cr

Instance Method Summary

Instance Method Detail

def call(context) #

[View source]