Packages

trait Http extends Object

To use the HTTP server and client one must require('http').

The HTTP interfaces in Node.js are designed to support many features of the protocol which have been traditionally difficult to use. In particular, large, possibly chunk-encoded, messages. The interface is careful to never buffer entire requests or responses--the user is able to stream data.

Annotations
@RawJSType() @native()
See also

https://nodejs.org/api/http.html

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Http
  2. Object
  3. Any
  4. AnyRef
  5. 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.

  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.

    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
  9. def createServer(options: ServerOptions, requestListener: Function2[ClientRequest, ServerResponse, Any]): Server
  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
  13. def get(options: RequestOptions): ClientRequest
  14. def get(url: |[String, URL]): ClientRequest
  15. def get(url: |[String, URL], callback: Function1[ServerResponse, Any]): ClientRequest
  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.

    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
  27. def request(options: RequestOptions): Unit
  28. def request(url: |[String, URL]): Unit
  29. def request(url: |[String, URL], callback: Function1[ServerResponse, Any]): Unit
  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 Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped