Endpoint

endpoints4s.http4s.client.EndpointsWithCustomErrors.Endpoint
final class Endpoint[A, B](val request: () => A, val response: () => B)

Information carried by an HTTP endpoint

Values of type Endpoint can be constructed by using the operation endpoint.

Type parameters

A

Information carried by the request

B

Information carried by the response

Attributes

Note

This type has implicit methods provided by the EndpointSyntax class

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def send(a: A): Resource[Effect, B]

This method returns a Resource[Effect, B] unlike sendAndConsume this is always safe to use in regard to laziness

This method returns a Resource[Effect, B] unlike sendAndConsume this is always safe to use in regard to laziness

Attributes

def sendAndConsume(request: A): Effect[B]

This method might suffer from leaking resource if the handling of the underlying resource is lazy. Use send instead in this case.

This method might suffer from leaking resource if the handling of the underlying resource is lazy. Use send instead in this case.

Attributes

Deprecated methods

def apply(request: A): Effect[B]

Attributes

Deprecated
true

Concrete fields

val request: () => A
val response: () => B