{
    "href": "/post/2016/05/31/telegraph-a-lambda-style-psr-7-middleware-dispatcher/",
    "relId": "2016/05/31/telegraph-a-lambda-style-psr-7-middleware-dispatcher",
    "title": "Telegraph: A Lambda-Style PSR-7 Middleware Dispatcher",
    "author": "pmjones",
    "markup": "html",
    "tags": [
        {
            "href": "/tag/php/",
            "relId": "php",
            "title": "PHP",
            "author": null,
            "created": null,
            "updated": [],
            "markup": "markdown"
        },
        {
            "href": "/tag/programming/",
            "relId": "programming",
            "title": "Programming",
            "author": null,
            "created": null,
            "updated": [],
            "markup": "markdown"
        },
        {
            "href": "/tag/telegraph/",
            "relId": "telegraph",
            "title": "Telegraph",
            "author": null,
            "created": null,
            "updated": [],
            "markup": "markdown"
        }
    ],
    "created": "2016-05-31 14:37:32 UTC",
    "updated": [
        "2016-05-31 14:37:32 UTC"
    ],
    "html": "<p>On reflecting over the discussions surrounding <a href=\"https://github.com/php-fig/fig-standards/pull/755\">the proposed PSR for HTTP middleware</a> (on which I am coordinator), I realized there's no reason there should *not* be a \"request-only\" PSR-7 middleware dispatcher.</p>\n<p>So, here is <a href=\"http://telegraphp.com\">Telegraph</a> to fill that void.</p>\n<p>Built over this past weekend, Telegraph is essentially a copy of <a href=\"http://relayphp.com\">Relay</a>, which is a \"request+response\" middleware dispatcher. (There are a couple of minor differences.)</p>\n<p>I also took the time to port the existing Relay middleware over to Telegraph. You can find the Telegraph middleware <a href=\"https://github.com/telegraphp/telegraph.middleware\">here</a>.</p>\n<p>I was asked over the weekend, \"Is this a sign that the HTTP middleware proposal is moving from request+response to request-only?\" (/me shrugs) I just figure if there's such a need for something like that, perhaps it should be made available.</p>\n<p>Oh, and I was able to quality-check and release it using <a href=\"http://getproducer.org\">Producer</a>.</p>\n<p>Enjoy!</p>\n<hr>\n<p class=\"reddit-links\">Read the Reddit discussion about this post <a href=\"https://www.reddit.com/r/PHP/comments/4lvizq/telegraph_a_lambdastyle_psr7_middleware_dispatcher/\">here</a>.</p>\n"
}
