Trait/Object

io.scalajs.npm.request

Request

Related Docs: object Request | package request

Permalink

trait Request extends Object with IEventEmitter

Simplified HTTP request client.

Annotations
@RawJSType() @native()
Version

2.79.0

See also

https://github.com/request/request

Linear Supertypes
IEventEmitter, Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Request
  2. IEventEmitter
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def addListener(eventName: String, listener: Function): Request.this.type

    Permalink
    Definition Classes
    IEventEmitter
  5. def apply(url: String, callback: RequestCallBack): Unit

    Permalink
  6. def apply(url: String): Readable

    Permalink
  7. def apply(form: |[|[RequestOptions, MultipartForm], RawOptions]): Readable

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def cookie(cookieString: String): Cookie

    Permalink

    Function that creates a new cookie.

    Function that creates a new cookie.

    cookieString

    the given cookie string

    returns

    the Cookie

  11. def defaults(options: |[RequestOptions, RawOptions]): Request.this.type

    Permalink

    This method returns a wrapper around the normal request API that defaults to whatever options you pass to it.

    This method returns a wrapper around the normal request API that defaults to whatever options you pass to it.

    options

    the given default options

    returns

    a self reference

  12. def del(url: String, callback: RequestCallBack): Unit

    Permalink

    Same as request(), but defaults to method: "DELETE".

    Same as request(), but defaults to method: "DELETE".

    url

    the requested URL

    callback

    the callback function

  13. def del(url: String): Readable

    Permalink

    Same as request(), but defaults to method: "DELETE".

    Same as request(), but defaults to method: "DELETE".

    url

    the requested URL

    returns

    a readable

  14. def del(options: |[RequestOptions, RawOptions], callback: RequestCallBack): Unit

    Permalink

    Same as Request(), but defaults to method: "DELETE".

    Same as Request(), but defaults to method: "DELETE".

    options

    the given request options

    callback

    the callback function

  15. def delete(url: String, callback: RequestCallBack): Unit

    Permalink

    Same as request(), but defaults to method: "DELETE".

    Same as request(), but defaults to method: "DELETE".

    url

    the requested URL

    callback

    the callback function

  16. def delete(url: String): Readable

    Permalink

    Same as request(), but defaults to method: "DELETE".

    Same as request(), but defaults to method: "DELETE".

    url

    the requested URL

    returns

    a readable

  17. def delete(options: |[RequestOptions, RawOptions], callback: RequestCallBack): Unit

    Permalink

    Same as Request(), but defaults to method: "DELETE".

    Same as Request(), but defaults to method: "DELETE".

    options

    the given request options

    callback

    the callback function

  18. var domain: String

    Permalink
    Definition Classes
    IEventEmitter
  19. def emit(name: String, args: Any*): Any

    Permalink
    Definition Classes
    IEventEmitter
  20. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. def form(values: RawOptions): Request.this.type

    Permalink
  24. def get(url: String, callback: RequestCallBack): Unit

    Permalink
  25. def get(url: String): Readable

    Permalink
  26. def get(options: |[|[RequestOptions, MultipartForm], RawOptions]): Readable

    Permalink
  27. def get(options: |[|[RequestOptions, MultipartForm], RawOptions], callback: RequestCallBack): Unit

    Permalink
  28. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  29. def getMaxListeners(): Int

    Permalink
    Definition Classes
    IEventEmitter
  30. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  32. def head(url: String, callback: RequestCallBack): Unit

    Permalink

    Same as request(), but defaults to method: "HEAD".

    Same as request(), but defaults to method: "HEAD".

    url

    the requested URL

    callback

    the callback function

  33. def head(url: String): Readable

    Permalink

    Same as request(), but defaults to method: "HEAD".

    Same as request(), but defaults to method: "HEAD".

    url

    the requested URL

    returns

    a readable

  34. def head(options: |[RequestOptions, RawOptions], callback: RequestCallBack): Unit

    Permalink

    Same as Request(), but defaults to method: "HEAD".

    Same as Request(), but defaults to method: "HEAD".

    options

    the given request options

    callback

    the callback function

  35. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  37. def jar(cookieStore: CookieStore = js.native): CookieJar

    Permalink

    Function that creates a new cookie jar.

    Function that creates a new cookie jar.

    cookieStore

    the optional custom CookieStore

    returns

    a CookieJar

  38. def listenerCount(eventName: String): Int

    Permalink
    Definition Classes
    IEventEmitter
  39. def listeners(eventName: String): Array[Function]

    Permalink
    Definition Classes
    IEventEmitter
  40. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  43. def on(eventName: String, listener: Function): Request.this.type

    Permalink
    Definition Classes
    IEventEmitter
  44. def once(eventName: String, listener: Function): Request.this.type

    Permalink
    Definition Classes
    IEventEmitter
  45. def patch(url: String, callback: RequestCallBack): Unit

    Permalink

    Same as Request(), but defaults to method: "PATCH".

    Same as Request(), but defaults to method: "PATCH".

    url

    the requested URL

    callback

    the callback function

  46. def patch(url: String): Writable

    Permalink

    Same as Request(), but defaults to method: "PATCH".

    Same as Request(), but defaults to method: "PATCH".

    url

    the requested URL

    returns

    a writable

  47. def patch(options: |[RequestOptions, RawOptions], callback: RequestCallBack): Unit

    Permalink

    Same as Request(), but defaults to method: "PATCH".

    Same as Request(), but defaults to method: "PATCH".

    options

    the given request options

    callback

    the callback function

  48. def post(url: String, options: |[RequestOptions, RawOptions], callback: RequestCallBack): Unit

    Permalink

    Use Request as a Writable stream to easily POST Readable streams (like files, other HTTP requests, or otherwise).

    Use Request as a Writable stream to easily POST Readable streams (like files, other HTTP requests, or otherwise).

    url

    the requested URL

    options

    the given request options

    callback

    the callback -> (error, response, body)

  49. def post(url: String, callback: RequestCallBack): Unit

    Permalink

    Use Request as a Writable stream to easily POST Readable streams (like files, other HTTP requests, or otherwise).

    Use Request as a Writable stream to easily POST Readable streams (like files, other HTTP requests, or otherwise).

    url

    the requested URL

  50. def post(url: String): Readable

    Permalink

    Use Request as a Writable stream to easily POST Readable streams (like files, other HTTP requests, or otherwise).

    Use Request as a Writable stream to easily POST Readable streams (like files, other HTTP requests, or otherwise).

    url

    the requested URL

    returns

    a readable

  51. def post(options: |[RequestOptions, RawOptions], callback: RequestCallBack): Unit

    Permalink

    POST a form with a callback

    POST a form with a callback

    options

    the given request options

    callback

    the callback function

  52. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  53. def put(url: String, callback: RequestCallBack): Unit

    Permalink

    Same as Request(), but defaults to method: "PUT".

    Same as Request(), but defaults to method: "PUT".

    url

    the requested URL

    callback

    the callback function

  54. def put(url: String): Writable

    Permalink

    Same as Request(), but defaults to method: "PUT".

    Same as Request(), but defaults to method: "PUT".

    url

    the requested URL

  55. def put(options: |[RequestOptions, RawOptions], callback: RequestCallBack): Unit

    Permalink

    Same as Request(), but defaults to method: "PUT".

    Same as Request(), but defaults to method: "PUT".

    options

    the given request options

    callback

    the callback function

  56. def removeAllListeners(): Request.this.type

    Permalink
    Definition Classes
    IEventEmitter
  57. def removeAllListeners(eventName: String): Request.this.type

    Permalink
    Definition Classes
    IEventEmitter
  58. def removeListener(eventName: String, listener: Function): Request.this.type

    Permalink
    Definition Classes
    IEventEmitter
  59. def setMaxListeners(n: Int): Request.this.type

    Permalink
    Definition Classes
    IEventEmitter
  60. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  61. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  63. var usingDomains: Boolean

    Permalink
    Definition Classes
    IEventEmitter
  64. def valueOf(): Any

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

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

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

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

Inherited from IEventEmitter

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped