Unit 3. HTTP server
In unit 2, you mastered the fundamentals of object-oriented programming in Scala and built an executable sbt application to print the current date and time in the given timezone. In this unit, you’ll adapt the code you wrote for the previous capstone to transform your application into an HTTP server. You’ll define an HTTP API to return the current date and time for a given country rather than a given time zone using http4s, a popular library to manage HTTP requests and responses. In particular, you’ll learn about the following subjects:
-
Lesson 14 teaches you about pattern matching, a powerful and useful tool to combine your program’s different execution flows based on some predefined condition.
-
Lesson 15 shows you what ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access