Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View acjay's full-sized avatar

Alan Johnson acjay

View GitHub Profile
@acjay
acjay / directive2.scala
Last active February 22, 2018 20:01 — forked from adamw/directive2.scala
import akka.http.scaladsl.server.Directives.{extractRequestContext, mapRouteResult}
import akka.http.scaladsl.server.{Directive0, RequestContext, RouteResult}
import akka.http.scaladsl.server.RouteResult.{Complete, Rejected}
import akka.stream.scaladsl.Flow
import akka.util.ByteString
import scala.concurrent.ExecutionContext
import scala.util.{Success, Try}
object AroundDirectives {