There’s a number of great Scala HTTP libraries. You can do synchronous or fully asynchronous calls, stream requests and responses, use either standard Scala Futures or other concurrency wrappers. However, on the API side, when it comes to programmer-friendliness, I think we can do better.
The main goal of sttp is to provide a simple, type-safe API for defining HTTP requests, sending them and receiving responses. In the mainly live-coding talk we’ll go through the main API design decisions: we’ll see how partial requests (“templates”) can be built, how is type-safety provided via type parameters and what do they mean, how is defining a request decoupled from execution.
The presentation will also cover other sttp features, such as the URI interpolator and request/response body streaming support, integration with Akka Streams, Monix, Scalaz and Cats.
YOU MAY ALSO LIKE:
- Free Monad or Tagless Final? How Not to Commit to a Monad Too Early (SkillsCast recorded in December 2017)
- Fast Track to RESTful Microservices (in London on 11th - 13th November 2019)
- Lightbend Akka for Scala - Professional (in London on 11th - 12th November 2019)
- Scala eXchange London 2019 (in London on 12th - 13th December 2019)
- Scalax2gether Community Day 2019 (in London on 14th December 2019)
- Don’t keep it to yourself - openness and honesty in the workplace (in London on 30th October 2019)
- Keynote by Naoki Takezoe on Revisit Dependency Injection in Scala and Introduction to Airframe (in London on 25th November 2019)
- Abstract Data Types In The Region Of Abysmal Pain, And How To Navigate Them (SkillsCast recorded in September 2019)
- The Last Frontier and Beyond (SkillsCast recorded in August 2019)
sttp: the Scala HTTP client that you always wanted!
Adam is one of the co-founders of SoftwareMill, a company specialising in delivering customised software solutions. He codes mostly on the back-end using Scala and other interesting technologies. Adam created a couple of open-source projects, such as sttp, MacWire, Hibernate Envers and ElasticMQ. He has been a speaker at major conferences, such as Devoxx, JavaOne, LambdaConf and ScalaDays.