let configuration = URLSessionConfiguration.default
configuration.httpAdditionalHeaders = Dictionary<String, String>(dictionaryLiteral: ("Authorization", "Token \(SysUtils.oAuthToken())"))
let session = URLSession.init(configuration: configuration)
let configuration = URLSessionConfiguration.default
configuration.httpAdditionalHeaders = Dictionary<String, String>(dictionaryLiteral: ("Authorization", "Token \(SysUtils.oAuthToken())"))
let session = URLSession.init(configuration: configuration)
本文标题:ios swift URLSession请求头插入token
本文链接:https://www.haomeiwen.com/subject/asgrpqtx.html
网友评论