AFN

作者: 肖旭晖 | 来源:发表于2018-12-13 10:16 被阅读0次
    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
    manager.responseSerializer = [AFHTTPResponseSerializer serializer];
    //manager.requestSerializer= [AFJSONRequestSerializer serializer];
    //[manager.requestSerializer setValue:@"text/html" forHTTPHeaderField:@"Content-Type"];
    manager.responseSerializer.acceptableContentTypes= [NSSet setWithObjects:@"application/json",@"text/json",@"text/javascript",@"text/html",@"image/png",@"image/jpeg",nil];
    

    相关文章

      网友评论

          本文标题:AFN

          本文链接:https://www.haomeiwen.com/subject/gqrvhqtx.html