From 71b44545c035071aac86c6db1ef4c5d0d92d2afd Mon Sep 17 00:00:00 2001 From: hank <hank.zhang@proficientcity.com> Date: Tue, 22 Jan 2019 10:55:29 +0800 Subject: [PATCH] 添加V3.8.0 --- frameworks/AFNetworking.framework/Headers/AFURLResponseSerialization.h | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frameworks/AFNetworking.framework/Headers/AFURLResponseSerialization.h b/frameworks/AFNetworking.framework/Headers/AFURLResponseSerialization.h old mode 100755 new mode 100644 index a9430ad..490b721 --- a/frameworks/AFNetworking.framework/Headers/AFURLResponseSerialization.h +++ b/frameworks/AFNetworking.framework/Headers/AFURLResponseSerialization.h @@ -25,6 +25,11 @@ NS_ASSUME_NONNULL_BEGIN /** + Recursively removes `NSNull` values from a JSON object. +*/ +id AFJSONObjectByRemovingKeysWithNullValues(id JSONObject, NSJSONReadingOptions readingOptions); + +/** The `AFURLResponseSerialization` protocol is adopted by an object that decodes data into a more useful object representation, according to details in the server response. Response serializers may additionally perform validation on the incoming response and data. For example, a JSON response serializer may check for an acceptable status code (`2XX` range) and content type (`application/json`), decoding a valid JSON response into an object. @@ -57,10 +62,7 @@ - (instancetype)init; -/** - The string encoding used to serialize data received from the server, when no string encoding is specified by the response. `NSUTF8StringEncoding` by default. - */ -@property (nonatomic, assign) NSStringEncoding stringEncoding; +@property (nonatomic, assign) NSStringEncoding stringEncoding DEPRECATED_MSG_ATTRIBUTE("The string encoding is never used. AFHTTPResponseSerializer only validates status codes and content types but does not try to decode the received data in any way."); /** Creates and returns a serializer with default configuration. @@ -111,6 +113,8 @@ - `application/json` - `text/json` - `text/javascript` + + In RFC 7159 - Section 8.1, it states that JSON text is required to be encoded in UTF-8, UTF-16, or UTF-32, and the default encoding is UTF-8. NSJSONSerialization provides support for all the encodings listed in the specification, and recommends UTF-8 for efficiency. Using an unsupported encoding will result in serialization error. See the `NSJSONSerialization` documentation for more details. */ @interface AFJSONResponseSerializer : AFHTTPResponseSerializer @@ -166,7 +170,7 @@ - (instancetype)init; /** - Input and output options specifically intended for `NSXMLDocument` objects. For possible values, see the `NSJSONSerialization` documentation section "NSJSONReadingOptions". `0` by default. + Input and output options specifically intended for `NSXMLDocument` objects. For possible values, see the `NSXMLDocument` documentation section "Input and Output Options". `0` by default. */ @property (nonatomic, assign) NSUInteger options; -- Gitblit v1.8.0