Tagged in

Rest

Knoldus - Technical Insights
Knoldus - Technical Insights
Knols, Insights and Opinions from the curious minds at Knoldus Inc.
More information
Followers
211
Elsewhere
More, on Medium

How To Implement logRequestResponse in Spray

Spray has the feature to log request and response of every route through logRequestResponse. We needn’t to add log in each route because it could be done from a single place. This also helps to maintain clean code.
Please see below example:-


Spray with Akka Starter Kit

Over the last few months, Spray is fast becoming the de-facto for all the products that we are working on. Irrespective of whether it is a product which has a full featured UI or a gaming component which needs to provide services for the game to execute in a performant way, Spray…