FetchEventStreamBuilder

io.laminext.fetch.FetchEventStreamBuilder
final class FetchEventStreamBuilder(var _url: ToRequestUrl, var _method: HttpMethod, var _headers: UndefOr[Map[String, String]], var _body: ToRequestBody, var _referrer: UndefOr[String], var _referrerPolicy: UndefOr[ReferrerPolicy], var _mode: UndefOr[RequestMode], var _credentials: UndefOr[RequestCredentials], var _cache: UndefOr[RequestCache], var _redirect: UndefOr[RequestRedirect], var _integrity: UndefOr[String], var _keepalive: UndefOr[Boolean], var _timeout: UndefOr[FiniteDuration])

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def addHeaders(headers: (String, String)*): FetchEventStreamBuilder
def arrayBuffer(implicit ec: ExecutionContext): EventStream[FetchResponse[ArrayBuffer]]
def blob(implicit ec: ExecutionContext): EventStream[FetchResponse[Blob]]
def build[A](extract: Response => Future[A])(implicit ec: ExecutionContext): EventStream[FetchResponse[A]]
def cache(cache: UndefOr[RequestCache]): FetchEventStreamBuilder
def configure(url: ToRequestUrl, method: HttpMethod, headers: UndefOr[Map[String, String]], body: ToRequestBody, referrer: UndefOr[String], referrerPolicy: UndefOr[ReferrerPolicy], mode: UndefOr[RequestMode], credentials: UndefOr[RequestCredentials], cache: UndefOr[RequestCache], redirect: UndefOr[RequestRedirect], integrity: UndefOr[String], keepalive: UndefOr[Boolean], timeout: UndefOr[FiniteDuration]): FetchEventStreamBuilder
def credentials(credentials: UndefOr[RequestCredentials]): FetchEventStreamBuilder
def headers(headers: UndefOr[Map[String, String]]): FetchEventStreamBuilder
def integrity(integrity: UndefOr[String]): FetchEventStreamBuilder
def json(implicit ec: ExecutionContext): EventStream[FetchResponse[Any]]
def keepalive(keepalive: UndefOr[Boolean]): FetchEventStreamBuilder
def mode(mode: UndefOr[RequestMode]): FetchEventStreamBuilder
def raw(implicit ec: ExecutionContext): EventStream[FetchResponse[Response]]
def redirect(redirect: UndefOr[RequestRedirect]): FetchEventStreamBuilder
def referrer(referrer: UndefOr[String]): FetchEventStreamBuilder
def referrerPolicy(referrerPolicy: UndefOr[ReferrerPolicy]): FetchEventStreamBuilder
def text(implicit ec: ExecutionContext): EventStream[FetchResponse[String]]
def timeout(timeout: UndefOr[FiniteDuration]): FetchEventStreamBuilder
def updateHeaders(project: Map[String, String] => Map[String, String]): FetchEventStreamBuilder