public class StitchRequestClientImpl extends BaseStitchRequestClient
| Constructor and Description |
|---|
StitchRequestClientImpl(String baseUrl,
Transport transport,
Long defaultRequestTimeout)
Constructs a StitchRequestClientImpl with the provided parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
doRequest(StitchRequest stitchReq)
Performs a request against global Stitch app server.
|
EventStream |
doStreamRequest(StitchRequest stitchReq)
Performs a streaming request against global Stitch app server.
|
closepublic StitchRequestClientImpl(String baseUrl, Transport transport, Long defaultRequestTimeout)
baseUrl - the base URL of the Stitch server to which this client will make requests.transport - the underlying Transport that this client will use to make requests.defaultRequestTimeout - the number of milliseconds the client should wait for a response
by default from the server before failing with an error.public Response doRequest(StitchRequest stitchReq)
stitchReq - the request to perform.Response to the request.public EventStream doStreamRequest(StitchRequest stitchReq)
stitchReq - the request to perform.EventStream that will provide response events.