fuel docs mention the possibility to create a FuelManager instance for not-global config:
Create separate managers using FuelManager()
However I haven't found a way to use an instance of FuelManager instead of the global one in making a request. What do I have to do?
FuelManager
offers functions to make HTTP calls directly, so you can/should use the (configured) instance.
Note: Avoid eg Fuel#get
since then you'd use the global FuelManager
config.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.