Trait

io.scalajs.npm.angularjs.http

Http

Related Doc: package http

Permalink

trait Http extends Object

The $http service is a core Angular service that facilitates communication with the remote HTTP servers via the browser's XMLHttpRequest object or via JSONP.

Annotations
@RawJSType() @native()
See also

https://docs.angularjs.org/api/ng/service/$http

Linear Supertypes
Object, Any, AnyRef, Any
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. 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 apply[T <: Any](config: HttpConfig): Promise[HttpResponse[T]]

    Permalink

    Usage: $http(config)

    Usage: $http(config)

    config

    Object describing the request to be made and how it should be processed.

    returns

    Returns a promise object with the standard then method and two http specific methods: success and error. The then method takes two arguments a success and an error callback which will be called with a response object. The success and error methods take a single argument - a function that will be called when the request succeeds or fails respectively. The arguments passed into these functions are destructured representation of the response object passed into the then method.

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def delete[T <: Any](url: String, data: Any = js.native, config: HttpConfig = js.native, headers: Dictionary[Any] = js.native): Promise[HttpResponse[T]]

    Permalink

    Shortcut method to perform a DELETE request.

    Shortcut method to perform a DELETE request.

    url

    Relative or absolute URL specifying the destination of the request

    data

    Request content

    config

    Optional configuration object

    returns

    a promise of an response

  8. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def get[T <: Any](url: String, config: HttpConfig = js.native, headers: Dictionary[Any] = js.native): Promise[HttpResponse[T]]

    Permalink

    Relative or absolute URL specifying the destination of the request

    Relative or absolute URL specifying the destination of the request

    url

    Relative or absolute URL specifying the destination of the request

    config

    Optional configuration object

    returns

    a promise of an response

  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def head[T <: Any](url: String, config: HttpConfig = js.native): Promise[HttpResponse[T]]

    Permalink

    Shortcut method to perform a HEAD request.

    Shortcut method to perform a HEAD request.

    url

    Relative or absolute URL specifying the destination of the request

    config

    Optional configuration object

    returns

    a promise of an response

  16. final def isInstanceOf[T0]: Boolean

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

    Permalink
    Definition Classes
    Object
  18. def jsonp[T <: Any](url: String, config: HttpConfig = js.native): Promise[HttpResponse[T]]

    Permalink

    Shortcut method to perform a JSONP request.

    Shortcut method to perform a JSONP request.

    url

    Relative or absolute URL specifying the destination of the request

    config

    Optional configuration object

    returns

    a promise of an response

  19. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  22. def patch[T <: Any](url: String, data: Any = js.native, config: HttpConfig = js.native, headers: Dictionary[Any] = js.native, responseType: String = js.native): Promise[HttpResponse[T]]

    Permalink

    Shortcut method to perform a PATCH request.

    Shortcut method to perform a PATCH request.

    url

    Relative or absolute URL specifying the destination of the request

    data

    Request content

    config

    Optional configuration object

    returns

    a promise of an response

  23. def post[T <: Any](url: String, data: Any = js.native, config: HttpConfig = js.native, headers: Dictionary[Any] = js.native, responseType: String = js.native): Promise[HttpResponse[T]]

    Permalink

    Shortcut method to perform a POST request.

    Shortcut method to perform a POST request.

    url

    Relative or absolute URL specifying the destination of the request

    data

    Request content

    config

    Optional configuration object

    returns

    a promise of an response

  24. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  25. def put[T <: Any](url: String, data: Any = js.native, config: HttpConfig = js.native, headers: Dictionary[Any] = js.native, responseType: String = js.native): Promise[HttpResponse[T]]

    Permalink

    Shortcut method to perform a PUT request.

    Shortcut method to perform a PUT request.

    url

    Relative or absolute URL specifying the destination of the request

    data

    Request content

    config

    Optional configuration object

    returns

    a promise of an response

  26. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

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

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped