Skip to main content

RESTful APIs

  • Chapter
  • First Online:
Practical Web Development with Haskell
  • 977 Accesses

Abstract

In this chapter, we are going to explore how to do web programming in Haskell. When building web applications, it’s common to use a web framework. Haskell also has such frameworks. The most popular ones are scotty, servant, and yesod. All those frameworks are built on top of wai. wai is a Haskell package that defines the types for HTTP request and response. It has no actual implementation. The only production-ready implementation of wai is warp.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    www.stackage.org/lts-10.3/package/scotty-0.11.0

  2. 2.

    www.stackage.org/lts-10.3/package/servant-0.11

  3. 3.

    www.stackage.org/lts-10.3/package/yesod-1.4.5

  4. 4.

    www.stackage.org/lts-10.3/package/wai-3.2.1.1

  5. 5.

    www.stackage.org/lts-10.3/package/warp-3.2.13

  6. 6.

    https://www.stackage.org/lts-10.3/package/http-types-0.9.1

  7. 7.

    www.stackage.org/haddock/lts-10.3/wai-extra-3.0.21.0/Network-Wai-Middleware-Gzip.html

  8. 8.

    www.stackage.org/haddock/lts-10.3/wai-extra-3.0.21.0/Network-Wai-Middleware-Vhost.html

  9. 9.

    www.stackage.org/haddock/lts-10.3/wai-extra-3.0.21.0/Network-Wai-Middleware-HttpAuth.html

  10. 10.

    www.stackage.org/package/wai-middleware-static

  11. 11.

    www.stackage.org/haddock/lts-10.4/wai-extra-3.0.22.0/Network-Wai-Middleware-RequestLogger.html

  12. 12.

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie

  13. 13.

    www.stackage.org/lts-10.3/package/cookie-0.4.3

  14. 14.

    www.stackage.org/lts-10.3/package/blaze-builder-0.4.0.2

  15. 15.

    https://www.stackage.org/package/digestive-functors

  16. 16.

    https://www.stackage.org/package/digestive-functors-aeson

  17. 17.

    https://insomnia.rest /

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Ecky Putrady

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Putrady, E. (2018). RESTful APIs. In: Practical Web Development with Haskell. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3739-7_7

Download citation

Publish with us

Policies and ethics