ios swift URLSession请求头插入token

2019-03-08  本文已影响0人  鹅鹅鹅_
let configuration = URLSessionConfiguration.default
configuration.httpAdditionalHeaders = Dictionary<String, String>(dictionaryLiteral: ("Authorization", "Token \(SysUtils.oAuthToken())"))
let session = URLSession.init(configuration: configuration)

上一篇 下一篇

猜你喜欢

热点阅读