Skip to content

Commit ecab609

Browse files
committed
AFHTTPClient -> AFHTTPRequestOperationManager
This AFNetworking naming change has unfortunately made the overall name of this project a little less obvious, but we shall persevere nonetheless!
1 parent 97a91c7 commit ecab609

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

AFHTTPClientLogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef enum {
6565
#pragma mark -
6666

6767
/**
68-
`AFHTTPClient` category that provides access to the logger.
68+
`AFHTTPRequestOperationManager` category that provides access to the logger.
6969
*/
7070
@interface AFHTTPRequestOperationManager (Logging)
7171

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
# AFHTTPClientLogger
22

33
AFHTTPClientLogger is a request logging extension for [AFNetworking][]. It
4-
provides configurable HTTP request logging features on a per `AFHTTPClient`
4+
provides configurable HTTP request logging features on a per `AFHTTPRequestOperationManager`
55
instance basis.
66

77
It is conceptually similar to [AFHTTPRequestOperationLogger][], which works
8-
globally across all `AFHTTPClient` instances.
8+
globally across all `AFHTTPRequestOperationManager` instances.
99

1010
## Usage
1111

12-
The logger is accessed via the `logger` property of an `AFHTTPClient` object
13-
instance (simply named `client` in the examples below). It must be explicitly
12+
The logger is accessed via the `logger` property of an `AFHTTPRequestOperationManager` object
13+
instance (simply named `manager` in the examples below). It must be explicitly
1414
enabled:
1515

1616
```objective-c
17-
client.logger.enabled = YES;
17+
manager.logger.enabled = YES;
1818
```
1919

2020
You can configure the log level to control the output's verbosity:
2121

2222
```objective-c
23-
client.logger.level = AFHTTPClientLogLevelDebug;
23+
manager.logger.level = AFHTTPClientLogLevelDebug;
2424
```
2525

2626
You can also customize the output by supplying your own format blocks:
2727

2828
```objective-c
29-
[client.logger setRequestStartFormatBlock:^NSString *(AFHTTPRequestOperation *operation, AFHTTPClientLogLevel level) {
29+
[manager.logger setRequestStartFormatBlock:^NSString *(AFHTTPRequestOperation *operation, AFHTTPClientLogLevel level) {
3030
if (level > AFHTTPClientLogLevelInfo) {
3131
return nil;
3232
}

0 commit comments

Comments
 (0)