Skip to content

Make it possible to alter the URLSessionConfiguration.#42

Open
fousa wants to merge 4 commits intomasterfrom
feature/configure-session-configuration
Open

Make it possible to alter the URLSessionConfiguration.#42
fousa wants to merge 4 commits intomasterfrom
feature/configure-session-configuration

Conversation

@fousa
Copy link
Copy Markdown
Collaborator

@fousa fousa commented Aug 16, 2021

This can be used to set the cookie handling for example:

extension Configuration {
    func alter(configuration: URLSessionConfiguration) {
        configuration.httpCookieAcceptPolicy = .always
        configuration.httpShouldSetCookies = true
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants