Packages

c

io.scalajs.nodejs.https

ServerOptions

class ServerOptions extends Object

Server Options

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

Instance Constructors

  1. new ServerOptions(host: UndefOr[String] = js.undefined, hostname: UndefOr[String] = js.undefined, family: UndefOr[String] = js.undefined, port: UndefOr[Int] = js.undefined, localAddress: UndefOr[String] = js.undefined, socketPath: UndefOr[String] = js.undefined, method: UndefOr[String] = js.undefined, path: UndefOr[String] = js.undefined, headers: UndefOr[Dictionary[String]] = js.undefined, auth: UndefOr[Dictionary[String]] = js.undefined, agent: UndefOr[String] = js.undefined)

    host

    A domain name or IP address of the server to issue the request to. Defaults to 'localhost'.

    hostname

    Alias for host. To support url.parse() hostname is preferred over host.

    family

    IP address family to use when resolving host and hostname. Valid values are 4 or 6. When unspecified, both IP v4 and v6 will be used.

    port

    Port of remote server. Defaults to 443.

    localAddress

    Local interface to bind for network connections.

    socketPath

    Unix Domain Socket (use one of host:port or socketPath).

    method

    A string specifying the HTTP request method. Defaults to 'GET'.

    path

    Request path. Defaults to '/'. Should include query string if any. E.G. '/index.html?page=12'. An exception is thrown when the request path contains illegal characters. Currently, only spaces are rejected but that may change in the future.

    headers

    An object containing request headers.

    auth

    Basic authentication i.e. 'user:password' to compute an Authorization header.

    agent

    Controls Agent behavior. When an Agent is used request will default to Connection: keep-alive. Possible values:

    • undefined (default): use globalAgent for this host and port.
    • Agent object: explicitly use the passed in Agent.
    • false: opts out of connection pooling with an Agent, defaults request to Connection: close.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. var agent: UndefOr[String]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. var auth: UndefOr[Dictionary[String]]
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. var family: UndefOr[String]
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  15. var headers: UndefOr[Dictionary[String]]
  16. var host: UndefOr[String]
  17. var hostname: UndefOr[String]
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  20. var localAddress: UndefOr[String]
  21. var method: UndefOr[String]
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  25. var path: UndefOr[String]
  26. var port: UndefOr[Int]
  27. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  28. var socketPath: UndefOr[String]
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toLocaleString(): String
    Definition Classes
    Object
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def valueOf(): Any
    Definition Classes
    Object
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped