Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Alamofire support HTTP pipelining?

Tags:

alamofire

We are about to pull the trigger and switch from AFNetworking to Alamofire and we just want to make sure that it is future proof.

One of the question is does it support HTTP pipelining?

thx

like image 688
Stefan Vasiljevic Avatar asked Mar 17 '26 11:03

Stefan Vasiljevic


1 Answers

Yes it does.
You just have to override the RequestAdapter class, do urlRequest.httpShouldUsePipelining = true inside it and then just return urlRequest instance.

like image 63
tx2 Avatar answered Mar 20 '26 16:03

tx2



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!