harness.http.server

Members list

Type members

Classlikes

final case class Cookie

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
object Cookie

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Cookie.type
final case class EarlyReturn(response: HttpResponse) extends Single

Attributes

Supertypes
trait Product
trait Equals
class Single
class HError
class HErrorOr[Nothing]
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class ErrorWithHTTPCode(httpCode: HttpCode, child: HError) extends Single

Attributes

Supertypes
trait Product
trait Equals
class Single
class HError
class HErrorOr[Nothing]
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class Handler[ServerEnv, ReqEnv](serverRuntime: Runtime[HarnessEnv & ServerEnv], reqLayer: HRLayer[ServerEnv & Scope, ReqEnv], route: Route[ServerEnv & ReqEnv])(using evidence$1: Tag[ReqEnv]) extends HttpHandler

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait HttpHandler
class Object
trait Matchable
class Any
Show all
object Handler

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Handler.type
final case class HttpRequest(requestId: UUID, method: HttpMethod, path: List[String], queries: Map[String, String], headers: Map[String, List[String]], cookies: Map[String, String], rawInputStream: InputStream, remoteAddress: InetSocketAddress)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object HttpRequest

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait HttpResponse

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Found
object NotFound.type
object HttpResponse

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Route[-R]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Self type
Route[R]
object Route

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Route.type
trait RouteMatcher[+O]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Self type
object RouteMatcher

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
object Server

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Server.type
final case class ServerConfig(port: Option[Int], resDir: String, useJarResource: Boolean, ssl: Option[SslConfig])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object ServerConfig

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Types

Givens

Givens

given `given_Conversion_**_type_RouteMatcher`: Conversion[**.type, RouteMatcher[List[String]]]
given `given_Conversion_*_RouteMatcher`[A]: Conversion[*[A], RouteMatcher[A]]
given given_Conversion_HttpMethod_RouteMatcher: Conversion[HttpMethod, RouteMatcher[Unit]]
given given_Conversion_String_RouteMatcher: Conversion[String, RouteMatcher[Unit]]

Extensions

Extensions

extension (hError: HError)(hError: HError)
def withHTTPCode(httpCode: HttpCode): HError