I want to know whether the Multiple request :
if my $http request 1
start , let's say $http request 1
ends and tried to call $http request 2
. my question how can i create a multiple request ?
for example : call $http request 1
then $http request 2
.
As I understand, you're trying to make more than one http request and then process the response when all those request have ended. For instance, you may need to load data from more than one source, and delay the post-loading logic until all the data has loaded.
If that's the case, you could use ReactiveX Observables because it provides a method called
forkJoin()
to wrap multiple Observables.Then you could get all the data by subscribing to that observable: