# STRequest **Repository Path**: yanglishuan/STRequest ## Basic Information - **Project Name**: STRequest - **Description**: 轻量级iOS网络请求 - **Primary Language**: Objective-C - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2013-12-10 - **Last Updated**: 2022-06-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #STRequest 用法 ---------------- // 异步测试 NSDictionary *params = @{@"name": @"xuezhang", @"age": @"26"}; [STRequest sendAsynchronousRequestWithUrlString:SeverUrl params:params method:STRequestMethodGet completionHandler:^(NSString *responseString, NSDictionary *responseData, NSError *connectionError) { NSLog(@"%@", responseData); // 在这里处理返回结果 }]; // 同步测试 NSDictionary *result = [STRequest sendSynchronousRequestWithUrlString:SeverUrl params:params method:STRequestMethodGet]; // 打印返回结果 NSLog(@"%@", result);