giraffe

Giraffe

Giraffe web framework for F# on ASP.NET Core

Details

Language / Topic
fsharpF#
Category
framework
Compatible Frameworks
giraffe

Rules

balanced
- Compose HTTP handlers with `>=>` (fish operator) to build pipelines: `route "/api" >=> GET >=> handleGet`.
- Use `json` and `text` response helpers from `Giraffe` — never write to `HttpResponse` directly.
- Define routes with `routef` for parameterized paths: `routef "/users/%i" getUser` binds typed URL segments.
- Use `choose` to branch on multiple route alternatives — the first matching handler wins, so order routes from most specific to least specific.