Skip to content

Exectutor

Pavel Koch edited this page Mar 2, 2019 · 3 revisions

Interface Executor

import { Executor } from 'awi'

Classes that inherit this interface take the built request configuration and turn it into a response.



send<T extends Response> (request: Request) : Promise<T>

Send the requst and receive the typed response.

Parameters

  • request: Request - The request object to use

Type Parameters

  • T extends Response - The desired response type

Returns

Promise<T> - The desired response

Throws

  • HttpException - If something goes wrong when executing the request

Clone this wiki locally