AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
AFJSONRequestSerializer *requestSeializer = [AFJSONRequestSerializer serializer];
manager.requestSerializer = requestSeializer;
// 这里才是重点
[manager.requestSerializer setValue:@"token值" forHTTPHeaderField:@"token"];
网友评论