Servant
inserting_doc_NamedRoutes
  • Tutorial
  • Cookbook
    • Structuring APIs
    • Record-based APIs: the simple case
    • Record-based APIs: the nested records case
    • Serving web applications over HTTPS
    • Overview
    • SQLite database
    • PostgreSQL connection pool
    • Using a custom monad
    • Inspecting, debugging, simulating clients and more
    • Customizing errors from Servant
    • Listing alternative responses and exceptions in your API types
    • Basic Authentication
    • Streaming out-of-the-box
    • Combining JWT-based authentication with basic access authentication
    • Hoist Server With Context for Custom Monads
    • File Upload (multipart/form-data)
    • Pagination
    • Generating mock curl calls
    • Error logging with Sentry
    • How To Test Servant Applications
    • OpenID Connect
  • Helpful Links
  • Principles
Servant
  • Docs »
  • Cookbook
  • Edit on GitHub

Cookbook¶

This page is a collective effort whose goal is to show how to solve many common problems with servant. If you’re interested in contributing examples of your own, feel free to open an issue or a pull request on our github repository or even to just get in touch with us on the **#haskell-servant** IRC channel on libera.chat <https://web.libera.chat/#haskell-servant>_ or on `the mailing list.

The scope is very wide. Simple and fancy authentication schemes, file upload, type-safe links, working with CSV, .zip archives, you name it!

  • Structuring APIs
  • Record-based APIs: the simple case
  • Record-based APIs: the nested records case
  • Serving web applications over HTTPS
  • Overview
  • SQLite database
  • PostgreSQL connection pool
  • Using a custom monad
  • Inspecting, debugging, simulating clients and more
  • Customizing errors from Servant
  • Listing alternative responses and exceptions in your API types
  • Basic Authentication
  • Streaming out-of-the-box
  • Combining JWT-based authentication with basic access authentication
  • Hoist Server With Context for Custom Monads
  • File Upload (multipart/form-data)
  • Pagination
  • Generating mock curl calls
  • Error logging with Sentry
  • How To Test Servant Applications
  • OpenID Connect
Next Previous

© Copyright 2018, Servant Contributors Revision 1ca98aa8.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: inserting_doc_NamedRoutes
Versions
master
latest
stable
v0.16
v0.15
v0.14.1
v0.13.0.1
v0.12
v0.11.0.1
v0.10
v0.9.1.1
v0.9.1
v0.9.0.1
v0.9
v0.8.1
v0.8
v0.7.1
v0.7
v0.6.1
v0.6
v0.5.post3
v0.5.post2
v0.5.post1
v0.5
release-0.15
release-0.14
release-0.13
release-0.12
release-0.11
inserting_doc_namedroutes
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.