public class IHttpService extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier and Type | Field and Description |
---|---|
Objs.Property<IHttpProviderDefaults> |
defaults
Runtime equivalent of the $httpProvider.defaults property.
|
Objs.Property<IRequestConfig[]> |
pendingRequests
Array of config objects for currently pending requests.
|
Modifier | Constructor and Description |
---|---|
protected |
IHttpService(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
<T> IHttpPromise<T> |
$apply(IRequestConfig config) |
static IHttpService |
$as(Object obj) |
IHttpProviderDefaults |
defaults() |
<T> IHttpPromise<T> |
delete(String url)
Shortcut method to perform DELETE request.
|
<T> IHttpPromise<T> |
delete(String url,
IRequestShortcutConfig config)
Shortcut method to perform DELETE request.
|
<T> IHttpPromise<T> |
get(String url)
Shortcut method to perform GET request.
|
<T> IHttpPromise<T> |
get(String url,
IRequestShortcutConfig config)
Shortcut method to perform GET request.
|
<T> IHttpPromise<T> |
head(String url)
Shortcut method to perform HEAD request.
|
<T> IHttpPromise<T> |
head(String url,
IRequestShortcutConfig config)
Shortcut method to perform HEAD request.
|
<T> IHttpPromise<T> |
jsonp(String url)
Shortcut method to perform JSONP request.
|
<T> IHttpPromise<T> |
jsonp(String url,
IRequestShortcutConfig config)
Shortcut method to perform JSONP request.
|
<T> IHttpPromise<T> |
patch(String url,
Object data)
Shortcut method to perform PATCH request.
|
<T> IHttpPromise<T> |
patch(String url,
Object data,
IRequestShortcutConfig config)
Shortcut method to perform PATCH request.
|
IRequestConfig[] |
pendingRequests() |
<T> IHttpPromise<T> |
post(String url,
Object data)
Shortcut method to perform POST request.
|
<T> IHttpPromise<T> |
post(String url,
Object data,
IRequestShortcutConfig config)
Shortcut method to perform POST request.
|
<T> IHttpPromise<T> |
put(String url,
Object data)
Shortcut method to perform PUT request.
|
<T> IHttpPromise<T> |
put(String url,
Object data,
IRequestShortcutConfig config)
Shortcut method to perform PUT request.
|
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<IHttpProviderDefaults> defaults
public Objs.Property<IRequestConfig[]> pendingRequests
protected IHttpService(Objs.Constructor<?> c, Object js)
public static IHttpService $as(Object obj)
public <T> IHttpPromise<T> $apply(IRequestConfig config)
public IHttpProviderDefaults defaults()
public IRequestConfig[] pendingRequests()
public <T> IHttpPromise<T> delete(String url, IRequestShortcutConfig config)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> delete(String url)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> get(String url, IRequestShortcutConfig config)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> get(String url)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> head(String url, IRequestShortcutConfig config)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> head(String url)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> jsonp(String url, IRequestShortcutConfig config)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> jsonp(String url)
url
- Relative or absolute URL specifying the destination of the requestconfig
- Optional configuration objectpublic <T> IHttpPromise<T> patch(String url, Object data, IRequestShortcutConfig config)
url
- Relative or absolute URL specifying the destination of the requestdata
- Request contentconfig
- Optional configuration objectpublic <T> IHttpPromise<T> patch(String url, Object data)
url
- Relative or absolute URL specifying the destination of the requestdata
- Request contentconfig
- Optional configuration objectpublic <T> IHttpPromise<T> post(String url, Object data, IRequestShortcutConfig config)
url
- Relative or absolute URL specifying the destination of the requestdata
- Request contentconfig
- Optional configuration objectpublic <T> IHttpPromise<T> post(String url, Object data)
url
- Relative or absolute URL specifying the destination of the requestdata
- Request contentconfig
- Optional configuration objectpublic <T> IHttpPromise<T> put(String url, Object data, IRequestShortcutConfig config)
url
- Relative or absolute URL specifying the destination of the requestdata
- Request contentconfig
- Optional configuration objectpublic <T> IHttpPromise<T> put(String url, Object data)
url
- Relative or absolute URL specifying the destination of the requestdata
- Request contentconfig
- Optional configuration objectCopyright © 2018. All rights reserved.