minhtam23
minhtam23

Reputation: 59

Cannot find 'SessionManager' in scope?

I'm updating my code with RxAlamofire. I updated RxAlmofire with lastest version. How can i update this code config.httpAdditionalHeaders = SessionManager.defaultHTTPHeaders in

let config = URLSessionConfiguration.default
    config.httpAdditionalHeaders = SessionManager.defaultHTTPHeaders

I tried with config.httpAdditionalHeaders = HTTPHeader.defaultUserAgent but not success

Upvotes: 4

Views: 4348

Answers (1)

hsing
hsing

Reputation: 124

Alamofire5 has renamed SessionManager to Session

Follow the migration guide here

, and so as to RxAlamofire

Upvotes: 6

Related Questions