Browse Source

Remove redundant parameter descriptions in ResponseSerialization.swift (#3630)

Update ResponseSerialization.swift

Remove redundant parameter descriptions in ResponseSerialization.swift
rain2540 3 years ago
parent
commit
dc9d7d4096
1 changed files with 0 additions and 8 deletions
  1. 0 8
      Source/ResponseSerialization.swift

+ 0 - 8
Source/ResponseSerialization.swift

@@ -817,8 +817,6 @@ extension DataRequest {
     ///   - queue:               The queue on which the completion handler is dispatched. `.main` by default.
     ///   - dataPreprocessor:    `DataPreprocessor` which processes the received `Data` before calling the
     ///                          `completionHandler`. `PassthroughPreprocessor()` by default.
-    ///   - encoding:            The string encoding. Defaults to `nil`, in which case the encoding will be determined
-    ///                          from the server response, falling back to the default HTTP character set, `ISO-8859-1`.
     ///   - emptyResponseCodes:  HTTP status codes for which empty responses are always valid. `[204, 205]` by default.
     ///   - emptyRequestMethods: `HTTPMethod`s for which empty responses are always valid. `[.head]` by default.
     ///   - options:             `JSONSerialization.ReadingOptions` used when parsing the response. `.allowFragments`
@@ -850,8 +848,6 @@ extension DownloadRequest {
     ///   - queue:               The queue on which the completion handler is dispatched. `.main` by default.
     ///   - dataPreprocessor:    `DataPreprocessor` which processes the received `Data` before calling the
     ///                          `completionHandler`. `PassthroughPreprocessor()` by default.
-    ///   - encoding:            The string encoding. Defaults to `nil`, in which case the encoding will be determined
-    ///                          from the server response, falling back to the default HTTP character set, `ISO-8859-1`.
     ///   - emptyResponseCodes:  HTTP status codes for which empty responses are always valid. `[204, 205]` by default.
     ///   - emptyRequestMethods: `HTTPMethod`s for which empty responses are always valid. `[.head]` by default.
     ///   - options:             `JSONSerialization.ReadingOptions` used when parsing the response. `.allowFragments`
@@ -1009,8 +1005,6 @@ extension DataRequest {
     ///   - dataPreprocessor:    `DataPreprocessor` which processes the received `Data` before calling the
     ///                          `completionHandler`. `PassthroughPreprocessor()` by default.
     ///   - decoder:             `DataDecoder` to use to decode the response. `JSONDecoder()` by default.
-    ///   - encoding:            The string encoding. Defaults to `nil`, in which case the encoding will be determined
-    ///                          from the server response, falling back to the default HTTP character set, `ISO-8859-1`.
     ///   - emptyResponseCodes:  HTTP status codes for which empty responses are always valid. `[204, 205]` by default.
     ///   - emptyRequestMethods: `HTTPMethod`s for which empty responses are always valid. `[.head]` by default.
     ///   - completionHandler:   A closure to be executed once the request has finished.
@@ -1042,8 +1036,6 @@ extension DownloadRequest {
     ///   - dataPreprocessor:    `DataPreprocessor` which processes the received `Data` before calling the
     ///                          `completionHandler`. `PassthroughPreprocessor()` by default.
     ///   - decoder:             `DataDecoder` to use to decode the response. `JSONDecoder()` by default.
-    ///   - encoding:            The string encoding. Defaults to `nil`, in which case the encoding will be determined
-    ///                          from the server response, falling back to the default HTTP character set, `ISO-8859-1`.
     ///   - emptyResponseCodes:  HTTP status codes for which empty responses are always valid. `[204, 205]` by default.
     ///   - emptyRequestMethods: `HTTPMethod`s for which empty responses are always valid. `[.head]` by default.
     ///   - completionHandler:   A closure to be executed once the request has finished.