### Apply Gleam Wisp Middleware with `use` Syntax Source: https://hexdocs.pm/wisp/1.8.0/wisp Illustrates applying middleware in a Wisp handler using Gleam's `use` syntax. It shows how `log_request` and `serve_static` middleware can be chained to process requests. ```gleam import wisp.{type Request, type Response} pub fn handle_request(request: Request) -> Response { use <- wisp.log_request(request) use <- wisp.serve_static(request, under: "/static", from: "/public") wisp.ok() } ``` -------------------------------- ### Define a Gleam Wisp Handler Function Source: https://hexdocs.pm/wisp/1.8.0/wisp Demonstrates how to define a handler function in Gleam for the Wisp web framework. It shows a handler that accepts a `Request` and a custom `Context` type, returning a `Response`. ```gleam import wisp.{type Request, type Response} pub type Context { Context(secret: String) } pub fn handle_request(request: Request, context: Context) -> Response { wisp.ok() } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.