lutingnit1
Results
1
issues of
lutingnit1
manager.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/json",@"text/json",@"text/javascript",@"text/html", nil]; //get请求 // SKIODriver * mockDriver=[[SKIODriver alloc]init]; // [mockDriver testUrl:urlString]; mockRequest(@"GET", @"https://www.baidu.com") .withBody(@"ceshi") .andReturn(200).withBody(@"{\"key\":\"value\"}"); [manager GET:urlString parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) { //数据请求的进度 }