美文网首页
ios swift URLSession请求头插入token

ios swift URLSession请求头插入token

作者: 鹅鹅鹅_ | 来源:发表于2019-03-08 16:00 被阅读0次
    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