Interface StitchRequestClient
-
- All Known Implementing Classes:
BaseStitchRequestClient,StitchAppRequestClientImpl,StitchRequestClientImpl
public interface StitchRequestClient
-
-
Method Summary
Modifier and Type Method Description voidclose()Closes the underlying transport.ResponsedoRequest(StitchRequest stitchReq)Performs a request against some Stitch server.EventStreamdoStreamRequest(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
Responseto 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
EventStreamthat will provide response events.
-
close
void close()
Closes the underlying transport.
-
-