From 915b9436f4f902757d0372e4f7fd575c4edfe889 Mon Sep 17 00:00:00 2001 From: Matt Holt Date: Mon, 18 Jul 2016 15:57:35 -0600 Subject: [PATCH] Updated Writing a Plugin: HTTP Middleware (markdown) --- Writing-a-Plugin:-HTTP-Middleware.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Writing-a-Plugin:-HTTP-Middleware.md b/Writing-a-Plugin:-HTTP-Middleware.md index aecc19c..7d07e07 100644 --- a/Writing-a-Plugin:-HTTP-Middleware.md +++ b/Writing-a-Plugin:-HTTP-Middleware.md @@ -12,12 +12,12 @@ In this tutorial, you will learn: ## How HTTP Middleware Works in Caddy -Check out the [godoc for the httpserver package](http://godoc.org/github.com/mholt/caddy/caddyhttp/httpserver) The two most important types are [httpserver.Handler](https://godoc.org/github.com/mholt/caddy/caddyhttp/httpserver#Handler) and [httpserver.Middleware](https://godoc.org/github.com/mholt/caddy/caddyhttp/httpserver#Middleware). - -Middleware is a way to chain one handler to another. +Check out the [godoc for the httpserver package](http://godoc.org/github.com/mholt/caddy/caddyhttp/httpserver). The two most important types are [httpserver.Handler](https://godoc.org/github.com/mholt/caddy/caddyhttp/httpserver#Handler) and [httpserver.Middleware](https://godoc.org/github.com/mholt/caddy/caddyhttp/httpserver#Middleware). Handler is a function that actually handles an HTTP request. +Middleware is a way to chain one handler to another. + Caddy will do all the bookkeeping of setting up an HTTP server for you, but you need to implement these two types.