O'Reilly logo

Play for Scala by Peter Hilton, Erik Bakker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Defining the application’s HTTP interface

This chapter covers

  • Defining the URLs that the web application responds to
  • Mapping HTTP requests to Scala methods for defined URLs
  • Mapping HTTP request data to type-safe Scala objects
  • Validating HTTP form data
  • Returning a response to the HTTP client

This chapter is all about controllers, at least from an architectural perspective. From a more practical point of view, this chapter is about your application’s URLs and the data that the application receives and sends over HTTP.

In this chapter, we’re going to talk about designing and building a web-based product catalog for various kinds of paperclips that allows you to view and edit information about the many different kinds of paperclips ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required