import HttpLink from '@hackthevalley/sdk/app/links/synchronouslinks/HttpLink.js'
HttpLink
Extends:
Link → SynchronousLink → HttpLink
Constructor Summary
Public Constructor | ||
public |
constructor(url: *) Construct the link with URL |
Method Summary
Public Methods | ||
public |
Run a delete request |
|
public |
Run a get request |
|
public |
Run a post request |
|
public |
Run a put request |
|
public |
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#constructorParams:
Name | Type | Attribute | Description |
url | * | url |
Public Methods
public delete(config: *): Promise<Object> source
Run a delete request
Params:
Name | Type | Attribute | Description |
config | * |
|
config |
public get(config: *): Promise<Object> source
Run a get request
Params:
Name | Type | Attribute | Description |
config | * |
|
config |
public post(config: *): Promise<Object> source
Run a post request
Params:
Name | Type | Attribute | Description |
config | * |
|
config |