GoodRequest / GoodNetworking

📡 GoodNetworking is an iOS library written in Swift that simplifies HTTP networking by using GRSession and Encodable/DataRequest extensions. It supports latest Swift and all iOS devices, making it a powerful solution for managing network interactions and data encoding/decoding. The library is easy to install with SPM.
MIT License
31 stars 1 forks source link

Limited access in Network Session #21

Closed vaIerika closed 5 months ago

vaIerika commented 5 months ago

Session and configuration are now private, it limits area of developers' implementation.

Example: updating GoodNetworking on Kia project leads to a problem that "flush url cache" of the session configuration cannot be supported: 'session.sessionConfiguration.urlCache?.removeAllCachedResponses()'.

andrej-jasso commented 5 months ago

Please create an PR in GoodNetworking making the session sessionConfiguration parameter public. I agree you should be able to access it for these reason.

plajdo commented 5 months ago

@vaIerika https://github.com/GoodRequest/GoodNetworking/pull/20/files

would this help?