Latest 0.0.4
Homepage https://github.com/mark1225/QLNetwork
License MIT
Platforms ios 9.0, requires ARC
Dependencies AFNetworking, YYCache
Authors

/**

  • 发送请求Block(在block内部配置request)
    /
    [QLAction sharedQLAction].timeoutInterval = 10;
    [[QLAction sharedQLAction] sendRequestBlock:^id(NSObject
    request) {

    request.ql_url = [NSString stringWithFormat:@"%@/api/app/login", CommonURL];
    request.ql_method = QLRequestMethodPOST;
    request.ql_params = @{};

    DLog(@"%@–%@", request.ql_url, request.ql_params);

} progress:^(NSProgress isProgress) {
progressBlock(isProgress);
} success:^(id responseObject) {
successBlock(responseObject);
} failure:^(NSError
error) {
failureBlock(error);
}];

Latest podspec

{
    "name": "QLNetwork",
    "version": "0.0.4",
    "summary": "u5bf9ANNetworking u5c01u88c5",
    "description": "u5bf9ANNetworking u8fdbu884cu5c01u88c5u4ee5u65b9u4fbfu81eau5df1u4f7fu7528",
    "homepage": "https://github.com/mark1225/QLNetwork",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "qilong": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/mark1225/QLNetwork.git",
        "tag": "0.0.4"
    },
    "source_files": "QLNetworkDemo/QLNetworkDemo/QLNetwork/*.{h,m}",
    "dependencies": {
        "AFNetworking": [
            "~> 3.2.1"
        ],
        "YYCache": [
            "~> 1.0.4"
        ]
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This