Make an authenticated request to the client's endpoint with its token.
(
endpoint: string,
method: HTTPMethod,
path: string,
options: {
body?: Object
customHeaders?: Object
reloadCache?: boolean
} = {}
)
| 1799 | |
| 1800 | /** Make an authenticated request to the client's endpoint with its token. */ |
| 1801 | private async request( |
| 1802 | endpoint: string, |
| 1803 | method: HTTPMethod, |
| 1804 | path: string, |
| 1805 | options: { |
| 1806 | body?: Object |
| 1807 | customHeaders?: Object |
| 1808 | reloadCache?: boolean |
| 1809 | } = {} |
| 1810 | ): Promise<Response> { |
| 1811 | return await request( |
| 1812 | endpoint, |
| 1813 | this.token, |
| 1814 | method, |
| 1815 | path, |
| 1816 | options.body, |
| 1817 | options.customHeaders, |
| 1818 | options.reloadCache |
| 1819 | ) |
| 1820 | } |
| 1821 | |
| 1822 | /** |
| 1823 | * Make an authenticated request to the client's endpoint with its token. |
no test coverage detected