Class: DirectSender
transport.DirectSender
Stub implementation of the Sender interface, passing requests directly into a Server instance. this is useful for testing, where client and server instances are managed by the same process
Implements
Constructors
constructor
• new DirectSender(server
)
Parameters
Name | Type |
---|---|
server |
Server |
Defined in
Methods
send
▸ send(req
): Promise
<Response
>
Parameters
Name | Type |
---|---|
req |
Request |
Returns
Promise
<Response
>