mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-09 03:04:57 -04:00
(d'oh!)
parent
92d0e49926
commit
d6be9725bd
@ -53,7 +53,7 @@ Now that your general-purpose middleware handler is working, it's time to integr
|
||||
In your package, create a `Setup` function which will be used to set up your middleware. It must parse the Caddyfile and fill in values as needed. Caddy will use this when the server starts to chain it in, start any necessary services, and get everything running. For example:
|
||||
|
||||
```go
|
||||
// Setup configures a new MyMiddleware middleware instance.
|
||||
// Setup configures a new MyHandler middleware instance.
|
||||
func Setup(c *Controller) (middleware.Middleware, error) {
|
||||
for c.Next() {
|
||||
// do parsing
|
||||
|
Loading…
x
Reference in New Issue
Block a user