NAME

Plack::Middleware::RequestId - generate the request id

SYNOPSIS

enable 'RequestId';

options

enable 'RequestId',
    http_header => 'X-Request-Id';

use another id generator if you want

enable 'RequestId',
    id_generator => sub {
        Digest::MD5::md5_hex($$, time(), $env->{PATH_INFO})
    };

DESCRIPTION

Plack::Middleware::RequestId generates the request id and sets it into HTTP header.

METHODS

prepare_app
call

REPOSITORY

Plack::Middleware::RequestId is hosted on github: http://github.com/bayashi/Plack-Middleware-RequestId

I appreciate any feedback :D

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Plack::Middleware

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.