• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is it possible to modify the default NSURLSessionConfiguration?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it possible to modify the default NSURLSessionConfiguration?


  • Subject: Is it possible to modify the default NSURLSessionConfiguration?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 28 Jun 2016 11:09:13 -0700

Is it possible to modify the properties of the configuration object returned by [NSURLSessionConfiguration defaultSessionConfiguration]? The docs are unclear, but I’m assuming that the method returns a new instance every time, not a singleton, so just modifying the object wouldn’t work.

I want to do this because I need a way to register an NSURLProtocol with every NSURLSession in the process, not just the default one, and I don’t control the code that configures or creates the session (it’s inside React-Native*.)

—Jens

* https://github.com/facebook/react-native/blob/235b16d93287061a09c4624e612b5dc4f960ce47/Libraries/Network/RCTHTTPRequestHandler.m#L50-L72
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Index(es):
    • Date
    • Thread