EntryPointOps

natchez.http4s.syntax.EntryPointOps
See theEntryPointOps companion object
trait EntryPointOps[F[_]]

Attributes

Companion:
object
Source:
EntryPointOps.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Abstract methods

Attributes

Source:
EntryPointOps.scala

Concrete methods

def liftR(routes: Resource[[_] =>> Kleisli[F, Span[F], _$4], HttpRoutes[[_] =>> Kleisli[F, Span[F], _$5]]], isKernelHeader: CIString => Boolean)(implicit ev: MonadCancel[F, Throwable]): Resource[F, HttpRoutes[F]]

Lift an HttpRoutes-yielding resource that consumes Spans into the bare effect. We do this by ignoring any tracing that happens during allocation and freeing of the HttpRoutes resource. The reasoning is that such a resource typically lives for the lifetime of the application and it's of little use to keep a span open that long.

Lift an HttpRoutes-yielding resource that consumes Spans into the bare effect. We do this by ignoring any tracing that happens during allocation and freeing of the HttpRoutes resource. The reasoning is that such a resource typically lives for the lifetime of the application and it's of little use to keep a span open that long.

Attributes

isKernelHeader

should an HTTP header be passed to Kernel or not

Note:

All headers except security (Authorization, Cookie, Set-Cookie) and payload (Content-Length, ContentType, Content-Range, Trailer, Transfer-Encoding) are passed to Kernel by default.

Source:
EntryPointOps.scala
def liftT(routes: HttpRoutes[[_] =>> Kleisli[F, Span[F], _$2]], isKernelHeader: CIString => Boolean)(implicit ev: MonadCancel[F, Throwable]): HttpRoutes[F]

Given an entry point and HTTP Routes in Kleisli[F, Span[F], *] return routes in F. A new span is created with the URI path as the name, either as a continuation of the incoming trace, if any, or as a new root.

Given an entry point and HTTP Routes in Kleisli[F, Span[F], *] return routes in F. A new span is created with the URI path as the name, either as a continuation of the incoming trace, if any, or as a new root.

Attributes

isKernelHeader

should an HTTP header be passed to Kernel or not

Note:

All headers except security (Authorization, Cookie, Set-Cookie) and payload (Content-Length, ContentType, Content-Range, Trailer, Transfer-Encoding) are passed to Kernel by default.

Source:
EntryPointOps.scala
def wsLiftR(routes: Resource[[_] =>> Kleisli[F, Span[F], _$9], WebSocketBuilder2[[_] =>> Kleisli[F, Span[F], _$10]] => HttpRoutes[[_] =>> Kleisli[F, Span[F], _$11]]], isKernelHeader: CIString => Boolean)(implicit ev: MonadCancel[F, Throwable]): Resource[F, WebSocketBuilder2[F] => HttpRoutes[F]]

Lift a WebSocketBuilder2 => HttpRoutes-yielding resource that consumes Spans into the bare effect. We do this by ignoring any tracing that happens during allocation and freeing of the HttpRoutes resource. The reasoning is that such a resource typically lives for the lifetime of the application and it's of little use to keep a span open that long.

Lift a WebSocketBuilder2 => HttpRoutes-yielding resource that consumes Spans into the bare effect. We do this by ignoring any tracing that happens during allocation and freeing of the HttpRoutes resource. The reasoning is that such a resource typically lives for the lifetime of the application and it's of little use to keep a span open that long.

Attributes

isKernelHeader

should an HTTP header be passed to Kernel or not

Note:

All headers except security (Authorization, Cookie, Set-Cookie) and payload (Content-Length, ContentType, Content-Range, Trailer, Transfer-Encoding) are passed to Kernel by default.

Source:
EntryPointOps.scala
def wsLiftT(routes: WebSocketBuilder2[[_] =>> Kleisli[F, Span[F], _$7]] => HttpRoutes[[_] =>> Kleisli[F, Span[F], _$8]], isKernelHeader: CIString => Boolean)(implicit ev: MonadCancel[F, Throwable]): WebSocketBuilder2[F] => HttpRoutes[F]

Given an entry point and a function from WebSocketBuilder2 to HTTP Routes in Kleisli[F, Span[F], *] return a function from WebSocketBuilder2 to routes in F. A new span is created with the URI path as the name, either as a continuation of the incoming trace, if any, or as a new root.

Given an entry point and a function from WebSocketBuilder2 to HTTP Routes in Kleisli[F, Span[F], *] return a function from WebSocketBuilder2 to routes in F. A new span is created with the URI path as the name, either as a continuation of the incoming trace, if any, or as a new root.

Attributes

isKernelHeader

should an HTTP header be passed to Kernel or not

Note:

All headers except security (Authorization, Cookie, Set-Cookie) and payload (Content-Length, ContentType, Content-Range, Trailer, Transfer-Encoding) are passed to Kernel by default.

Source:
EntryPointOps.scala