Interface StitchRequestClient
-
- All Known Implementing Classes:
BaseStitchRequestClient
,StitchAppRequestClientImpl
,StitchRequestClientImpl
public interface StitchRequestClient
-
-
Method Summary
Modifier and Type Method Description void
close()
Closes the underlying transport.Response
doRequest(StitchRequest stitchReq)
Performs a request against some Stitch server.EventStream
doStreamRequest(StitchRequest stitchReq)
Performs a streaming request against some Stitch server.
-
-
-
Method Detail
-
doRequest
Response doRequest(StitchRequest stitchReq)
Performs a request against some Stitch server. Throws a Stitch specific exception if the request fails.- Parameters:
stitchReq
- the request to perform.- Returns:
- a
Response
to the request.
-
doStreamRequest
EventStream doStreamRequest(StitchRequest stitchReq)
Performs a streaming request against some Stitch server. Throws a Stitch-specific exception if the request fails.- Parameters:
stitchReq
- the request to perform.- Returns:
- an
EventStream
that will provide response events.
-
close
void close()
Closes the underlying transport.
-
-