How to determine if a request type is synchronous or asynchronous

Actually, my requirement is that the client can call services based on the rest, both synchronous (request-response) and asynchronous (request-confirmation-response). Now, based on the type of request, I have to follow the mode.

Now, my question is, is there any way out of the request itself, by default, is there any indicator that tells me that clients want request-response models. The service protocol is http.

if this is not possible, then what would be the best practice for handling this type of scenario.

+4
source share
1 answer

, .

: RequestType: Sync

Async

: RequestType: ASync

.

0

All Articles