Skip to content

8023/LLCAFNetworkExtension

Repository files navigation

LLCAFNetworkExtension

Config

GET

  • Response Serialize Json

     [self startRequestWithApi:@"http://test.com/api"
                        method:GetMethod params:@{@"param":@"testParam"}
                       success:^(NSURLSessionDataTask * task ,id result) {}
                        failed:^(NSURLSessionDataTask * task ,id result) {}
      ];
    

    or

      [self startRequestWithApi:@"http://hylapi.yuandalu.com/banner"
                        method:GetMethod params:nil
                       success:^(NSURLSessionDataTask * task ,id result) {}
                        failed:^(NSURLSessionDataTask * task ,id result) {}
                 respondMethod:AFSerializeTypeJson
      ];
    
    
  • Response Serialize Http

         [self startRequestWithApi:@"http://test.com/api"
                        method:GetMethod
                        params:nil
                       success:^(NSURLSessionDataTask * task ,id result) {
                           
                           NSHTTPURLResponse * response = (NSHTTPURLResponse *) task.response;
    
                       } failed:^(NSURLSessionDataTask * task ,id result) { }
                 respondMethod:AFSerializeTypeHttp
      ];
    
    

POST

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published