• This repository has been archived on 17/Jan/2023
  • Stars
    star
    113
  • Rank 310,115 (Top 7 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An XML and HTML response serializer for AFNetworking 2.0, using Ono

AFOnoResponseSerializer

AFOnoResponseSerializer is an XML and HTML response serializer for AFNetworking 2.0, using Ono.

Usage

XML

AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer = [AFOnoResponseSerializer XMLResponseSerializer];
[manager GET:@"http://example.com/foo.xml" parameters:nil success:^(AFHTTPRequestOperation *operation, ONOXMLDocument *responseDocument) {
    for (ONOXMLElement *element in [responseDocument XPath:@"//item"]) {
        NSLog(@"%@", element);
    }
} failure:nil];

HTML

AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
manager.responseSerializer = [AFOnoResponseSerializer HTMLResponseSerializer];
[manager GET:@"http://example.com/bar.html" parameters:nil success:^(AFHTTPRequestOperation *operation, ONOXMLDocument *responseDocument) {
    for (ONOXMLElement *element in [responseDocument CSS:@"body ul li"]) {
        NSLog(@"%@", element);
    }
} failure:nil];

Contact

Mattt Thompson

License

AFOnoResponseSerializer is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

AFNetworking

A delightful networking framework for iOS, macOS, watchOS, and tvOS.
Objective-C
33,334
star
2

AFIncrementalStore

1,687
star
3

AFOAuth2Manager

AFNetworking Extension for OAuth 2 Authentication
Objective-C
1,186
star
4

AFNetworkActivityLogger

AFNetworking 3.0 Extension for Network Request Logging
Objective-C
560
star
5

AFAmazonS3Manager

AFNetworking Client for the Amazon S3 API
Objective-C
362
star
6

fastlane

A fastlane setup to deploy Objective-C and Swift frameworks.
Ruby
251
star
7

Xcode-Project-Templates

Objective-C
221
star
8

AFHTTPRequestOperationLogger

AFNetworking Extension for HTTP Request Logging
Objective-C
214
star
9

AFOAuth1Client

AFNetworking Extension for OAuth 1.0a Authentication
Objective-C
210
star
10

AFJSONRPCClient

Client for interacting with JSON-RPC APIs
Objective-C
189
star
11

AFgzipRequestSerializer

gzip Request Serializer for AFNetworking
Objective-C
165
star
12

AFRocketClient

152
star
13

AFNetworking-ASIHTTPRequest

75
star
14

AFCoreImageResponseSerializer

AFNetworking 2.0 Serialization Module to apple Core Image Filters to Images
Objective-C
68
star
15

AFWebDAVManager

AFNetworking manager for WebDAV
Objective-C
64
star
16

AFMsgPackSerialization

AFNetworking 2.0 Serialization Module for MsgPack
Objective-C
64
star
17

WebKit-AFNetworking

AFNetworking Extensions for WebKit
Objective-C
48
star
18

AFContentRequestOperations

Legacy content-specific request operation subclasses re-implemented with AFNetworking 2.0 APIs
Objective-C
25
star
19

AFCollectionJSONRequestOperation

AFNetworking Extension for Collection+JSON Hypermedia
20
star
20

afnetworking.com

Source code for AFNetworking.com
CSS
8
star