Home Reference Source
public class | source

HttpLink

Extends:

LinkSynchronousLink → HttpLink

Constructor Summary

Public Constructor
public

constructor(url: *)

Construct the link with URL

Method Summary

Public Methods
public

delete(config: *): Promise<Object>

Run a delete request

public

get(config: *): Promise<Object>

Run a get request

public

post(config: *): Promise<Object>

Run a post request

public

put(config: *): Promise<Object>

Run a put request

public

run(config: *): Promise<object>

Runs a new http request

Inherited Summary

From class Link
public
public

run(config: any)

Run a request

From class SynchronousLink
public

Public Constructors

public constructor(url: *) source

Construct the link with URL

Override:

SynchronousLink#constructor

Params:

NameTypeAttributeDescription
url *

url

Public Methods

public delete(config: *): Promise<Object> source

Run a delete request

Params:

NameTypeAttributeDescription
config *
  • optional
  • default: {}

config

Return:

Promise<Object>

public get(config: *): Promise<Object> source

Run a get request

Params:

NameTypeAttributeDescription
config *
  • optional
  • default: {}

config

Return:

Promise<Object>

public post(config: *): Promise<Object> source

Run a post request

Params:

NameTypeAttributeDescription
config *
  • optional
  • default: {}

config

Return:

Promise<Object>

public put(config: *): Promise<Object> source

Run a put request

Params:

NameTypeAttributeDescription
config *
  • optional
  • default: {}

config

Return:

Promise<Object>

public run(config: *): Promise<object> source

Runs a new http request

Override:

Link#run

Params:

NameTypeAttributeDescription
config *

config

Return:

Promise<object>