NAME

Plack::App::Debugger - The web service backend for the debugger

VERSION

version 0.03

DESCRIPTION

This is the web API backend for the Plack::Debugger, its primary purpose is to deliver the recorded debugging data to the debugging UI. It must be mounted as its own endpoint within your Plack application, by default it expects to be mounted at /debugger but this can be changed if needed.

This module is tightly coupled with the Plack::Middleware::Debugger::Injector in the sense that what is injected by that middleware is the debugging UI that this module provides the backend for.

API

/static/*

This serves the static resources (Javascript and CSS) needed by the debugging UI as well as the debugging UI itself.

/$request_uid

This will return the data associated with the specified $request_uid as a single JSON object.

/$request_uid/subrequests

This will return all the subrequest data associated with the specified $request_uid as a JSON array or JSON objects.

If the X-Plack-Debugger-SubRequests-Modified-Since header is set, then it will only return the subset of subrequest data that has happened since the epoch specified in this header.

/$request_uid/subrequests/$subrequest_uid

This will return the specific subrequest data associated with the $request_uid and $subrequest_uid as a JSON object.

ACKNOWLEDGMENT

This module was originally developed for Booking.com. With approval from Booking.com, this module was generalized and published on CPAN, for which the authors would like to express their gratitude.

AUTHOR

Stevan Little <stevan@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Stevan Little.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.