Class

io.scalajs.npm.nodefetch

RequestOptions

Related Doc: package nodefetch

Permalink

class RequestOptions extends Object

Request Options

Annotations
@RawJSType() @ScalaJSDefined()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestOptions
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RequestOptions(agent: UndefOr[String] = js.undefined, body: Any = js.undefined, compress: UndefOr[Boolean] = js.undefined, follow: UndefOr[Int] = js.undefined, headers: Any = js.undefined, method: UndefOr[String] = js.undefined, redirect: UndefOr[String] = js.undefined, size: UndefOr[Int] = js.undefined, timeout: UndefOr[Int] = js.undefined)

    Permalink

    agent

    http.Agent instance, allows custom proxy, certificate etc.

    body

    request body. can be a string, buffer, readable stream

    compress

    support gzip/deflate content encoding. false to disable

    follow

    maximum redirect count. 0 to not follow redirect

    headers

    request header. format {a:'1'} or {b:['1','2','3']}

    method

    the HTTP method (e.g. "GET")

    redirect

    set to manual to extract redirect headers, error to reject redirect (e.g. "follow")

    size

    maximum response body size in bytes. 0 to disable

    timeout

    maximum redirect count. 0 to not follow redirect

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val agent: UndefOr[String]

    Permalink

    http.Agent instance, allows custom proxy, certificate etc.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val body: Any

    Permalink

    request body.

    request body. can be a string, buffer, readable stream

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val compress: UndefOr[Boolean]

    Permalink

    support gzip/deflate content encoding.

    support gzip/deflate content encoding. false to disable

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. val follow: UndefOr[Int]

    Permalink

    maximum redirect count.

    maximum redirect count. 0 to not follow redirect

  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. val headers: Any

    Permalink

    request header.

    request header. format {a:'1'} or {b:['1','2','3']}

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  19. val method: UndefOr[String]

    Permalink

    the HTTP method (e.g.

    the HTTP method (e.g. "GET")

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  24. val redirect: UndefOr[String]

    Permalink

    set to manual to extract redirect headers, error to reject redirect (e.g.

    set to manual to extract redirect headers, error to reject redirect (e.g. "follow")

  25. val size: UndefOr[Int]

    Permalink

    maximum response body size in bytes.

    maximum response body size in bytes. 0 to disable

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. val timeout: UndefOr[Int]

    Permalink

    maximum redirect count.

    maximum redirect count. 0 to not follow redirect

  28. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped