Packages

object Http extends Object with Http

Http Singleton

Annotations
@native() @JSImport("http", JSImport.Namespace)
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Http
  2. Http
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. val METHODS: Array[String]

    A list of the HTTP methods that are supported by the parser.

    A list of the HTTP methods that are supported by the parser.

    Definition Classes
    Http
  5. val STATUS_CODES: StatusCodes

    A collection of all the standard HTTP response status codes, and the short description of each.

    A collection of all the standard HTTP response status codes, and the short description of each.

    Definition Classes
    Http
    Example:
    1. http.STATUS_CODES[404] === 'Not Found'.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def createServer(requestListener: Function2[ClientRequest, ServerResponse, Any] = js.native): Server
    Definition Classes
    Http
  9. def createServer(options: ServerOptions, requestListener: Function2[ClientRequest, ServerResponse, Any]): Server
    Definition Classes
    Http
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def get(options: RequestOptions, callback: Function): ClientRequest
    Definition Classes
    Http
  13. def get(options: RequestOptions): ClientRequest
    Definition Classes
    Http
  14. def get(url: |[String, URL]): ClientRequest
    Definition Classes
    Http
  15. def get(url: |[String, URL], callback: Function1[ServerResponse, Any]): ClientRequest
    Definition Classes
    Http
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def globalAgent: Agent

    Global instance of Agent which is used as the default for all http client requests.

    Global instance of Agent which is used as the default for all http client requests.

    Definition Classes
    Http
    Example:
    1. http.globalAgent

  18. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  26. def request(options: RequestOptions, callback: Function1[ServerResponse, Any]): Unit
    Definition Classes
    Http
  27. def request(options: RequestOptions): Unit
    Definition Classes
    Http
  28. def request(url: |[String, URL]): Unit
    Definition Classes
    Http
  29. def request(url: |[String, URL], callback: Function1[ServerResponse, Any]): Unit
    Definition Classes
    Http
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toLocaleString(): String
    Definition Classes
    Object
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def valueOf(): Any
    Definition Classes
    Object
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Http

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped