HandlerPlatformSpecific

zio.http.HandlerPlatformSpecific

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Handler
Self type
Handler.type

Members list

Value members

Concrete methods

def fromResource(path: String, charset: Charset = ...)(implicit trace: Trace): Handler[Any, Throwable, Request, Response]

Creates a handler from a resource path. For file:// resources, Range requests are fully supported. For jar:// resources, Range requests are not supported (returns Accept-Ranges: none).

Creates a handler from a resource path. For file:// resources, Range requests are fully supported. For jar:// resources, Range requests are not supported (returns Accept-Ranges: none).

Attributes

def getResource(path: String)(implicit trace: Trace): Handler[Any, Throwable, Any, URL]

Attempts to retrieve files from the classpath.

Attempts to retrieve files from the classpath.

Attributes

def getResourceAsFile(path: String)(implicit trace: Trace): Handler[Any, Throwable, Any, File]

Attempts to retrieve files from the classpath.

Attempts to retrieve files from the classpath.

Attributes