Object/Trait

io.scalajs.npm.request

Request

Related Docs: trait Request | package request

Permalink

object Request extends Object with Request

Request Singleton

Annotations
@native() @JSImport( "request" , JSImport.Namespace )
Linear Supertypes
Request, IEventEmitter, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Request
  2. Request
  3. IEventEmitter
  4. Object
  5. Any
  6. AnyRef
  7. 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
    Definition Classes
    Request
  6. def apply(url: String): Readable

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

    Permalink
    Definition Classes
    Request
  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

    Definition Classes
    Request
  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

    Definition Classes
    Request
  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

    Definition Classes
    Request
  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

    Definition Classes
    Request
  14. 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

    Definition Classes
    Request
  15. 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

    Definition Classes
    Request
  16. var domain: String

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. def get(url: String, callback: RequestCallBack): Unit

    Permalink
    Definition Classes
    Request
  22. def get(url: String): Readable

    Permalink
    Definition Classes
    Request
  23. def get(form: |[|[RequestOptions, MultipartForm], RawOptions]): Readable

    Permalink
    Definition Classes
    Request
  24. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  28. 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

    Definition Classes
    Request
  29. 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

    Definition Classes
    Request
  30. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  32. 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

    Definition Classes
    Request
  33. def listenerCount(eventName: String): Int

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

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

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

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

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

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

    Permalink
    Definition Classes
    IEventEmitter
  40. 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

    Definition Classes
    Request
  41. 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

    Definition Classes
    Request
  42. 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

    Definition Classes
    Request
  43. 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

    Definition Classes
    Request
  44. 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

    Definition Classes
    Request
  45. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  46. 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

    Definition Classes
    Request
  47. 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

    Definition Classes
    Request
  48. def removeAllListeners(): Request.this.type

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

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

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

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

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

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

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

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

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

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

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

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

Inherited from Request

Inherited from IEventEmitter

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped