izumi.idealingua.runtime.rpc.http4s.context.WsIdExtractor.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of idealingua-v1-runtime-rpc-http4s_2.13 Show documentation
Show all versions of idealingua-v1-runtime-rpc-http4s_2.13 Show documentation
idealingua-v1-runtime-rpc-http4s
The newest version!
package izumi.idealingua.runtime.rpc.http4s.context
trait WsIdExtractor[RequestCtx, WsCtx] {
def extract(ctx: RequestCtx, previous: Option[WsCtx]): Option[WsCtx]
}
object WsIdExtractor {
def id[C]: WsIdExtractor[C, C] = (c, _) => Some(c)
def widen[C, C0 >: C]: WsIdExtractor[C, C0] = (c, _) => Some(c)
def unit[C]: WsIdExtractor[C, Unit] = (_, _) => Some(())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy