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
@JSType() @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()
  8. def createServer(): Server
  9. def createServer(requestListener: Function2[ClientRequest, ServerResponse, Any]): Server
  10. def createServer(options: ServerOptions, requestListener: Function2[ClientRequest, ServerResponse, Any]): Server
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. def get(options: RequestOptions, callback: Function): ClientRequest
  15. def get(options: RequestOptions): ClientRequest
  16. def get(url: URL): ClientRequest
  17. def get(url: URL, callback: Function1[ServerResponse, Any]): ClientRequest
  18. def get(url: URL, options: RequestOptions): ClientRequest
  19. def get(url: String): ClientRequest
  20. def get(url: String, callback: Function1[ServerResponse, Any]): ClientRequest
  21. def get(url: String, options: RequestOptions): ClientRequest
  22. def get(url: URL, options: RequestOptions, callback: Function1[ServerResponse, Any]): ClientRequest
  23. def get(url: String, options: RequestOptions, callback: Function1[ServerResponse, Any]): ClientRequest
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. 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

  26. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  30. def maxHeaderSize: Int
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  35. def request(options: RequestOptions, callback: Function1[ServerResponse, Any]): Unit
  36. def request(options: RequestOptions): Unit
  37. def request(url: URL): Unit
  38. def request(url: URL, callback: Function1[ServerResponse, Any]): Unit
  39. def request(url: URL, options: RequestOptions, callback: Function1[ServerResponse, Any]): Unit
  40. def request(url: URL, options: RequestOptions): Unit
  41. def request(url: String): Unit
  42. def request(url: String, callback: Function1[ServerResponse, Any]): Unit
  43. def request(url: String, options: RequestOptions, callback: Function1[ServerResponse, Any]): Unit
  44. def request(url: String, options: RequestOptions): Unit
  45. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  46. def toLocaleString(): String
    Definition Classes
    Object
  47. def toString(): String
    Definition Classes
    AnyRef → Any
  48. def valueOf(): Any
    Definition Classes
    Object
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped