FetchStream

object FetchStream extends FetchBuilder[BodyInit, String]

Note: dom.BodyInit is a union type that includes String and some other Javascript-specific data types.

Companion:
class
class FetchBuilder[BodyInit, String]
class Object
trait Matchable
class Any

Value members

Concrete methods

def withCodec[In, Out](encodeRequest: In => BodyInit, decodeResponse: Response => EventStream[Out]): FetchBuilder[In, Out]
def withDecoder[Out](decodeResponse: Response => EventStream[Out]): FetchBuilder[BodyInit, Out]
def withEncoder[In](encodeRequest: In => BodyInit): FetchBuilder[In, String]

Inherited methods

def apply(method: HttpMethod.type => HttpMethod, url: String, setOptions: FetchOptions[BodyInit] => Unit*): EventStream[Out]
Inherited from:
FetchBuilder
def get(url: String, setOptions: FetchOptions[BodyInit] => Unit*): EventStream[Out]
Inherited from:
FetchBuilder
def post(url: String, setOptions: FetchOptions[BodyInit] => Unit*): EventStream[Out]
Inherited from:
FetchBuilder
def put(url: String, setOptions: FetchOptions[BodyInit] => Unit*): EventStream[Out]
Inherited from:
FetchBuilder

Concrete fields

lazy val raw: FetchBuilder[BodyInit, Response]