URLSessionConfiguration

extension URLSessionConfiguration
  • A strict session configuration denying usage of cookies and caching

    Declaration

    Swift

    class func coronaWarnSessionConfiguration() -> URLSessionConfiguration

    Return Value

    The default session configuration for this app.

  • Session config with caching policy .useProtocolCachePolicy

    Note

    Caching is not realized via NSURLCache but via the internal SecureStore due to privacy concerns

    Declaration

    Swift

    class func cachingSessionConfiguration() -> URLSessionConfiguration

    Return Value

    A session url configuration that uses the same set of parameters like the default CWA config. Only exception is the usage of caching policies.