nategood / httpful

A Chainable, REST Friendly, PHP HTTP Client. A sane alternative to cURL.
MIT License
1.74k stars 298 forks source link

Multiple clients posible? #265

Open BasvanH opened 6 years ago

BasvanH commented 6 years ago

Hi,

I have one class where I use httpful as an HTTP client to get XML data. Because of different credentials I need to have two sessions so I load two variables with my class. I noticed the second variable overwrites the Httpfull client in my class, it doesn't make both httpful clients unique. Is there a way to accomplish this?

Regards, Bastiaan

nategood commented 6 years ago

Code example? Are you changing the request template?

BasvanH commented 6 years ago

For the code, please look here. Yes, I think I adjust the request template.

BasvanH commented 6 years ago

Can I make both class initializations use an unique template?