@@ -57,7 +57,7 @@ public extension AnyRequest {
5757 /// - decoder: The JSON decoder or decoding strategy.
5858 /// - keyPath: Optional key path for decoding nested values.
5959 /// - Returns: A `TypedRequest` instance that decodes the response.
60- func decode< T> ( _ type : T . Type = T . self, with decoder: JSONDecoder , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
60+ func decode< T> ( _: T . Type = T . self, with decoder: JSONDecoder , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
6161 where T: Decodable {
6262 return . init( anyRequest: self , decoder: DecodableContent < T > ( decoder: { decoder } , keyPath: keyPath) )
6363 }
@@ -69,7 +69,7 @@ public extension AnyRequest {
6969 /// - decoder: The JSON decoder or decoding strategy.
7070 /// - keyPath: Optional key path for decoding nested values.
7171 /// - Returns: A `TypedRequest` instance that decodes the response.
72- func decode< T> ( _ type : T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
72+ func decode< T> ( _: T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
7373 where T: Decodable {
7474 return . init( anyRequest: self , decoder: DecodableContent < T > ( decoder: decoder, keyPath: keyPath) )
7575 }
@@ -81,7 +81,7 @@ public extension AnyRequest {
8181 /// - decoder: The JSON decoder or decoding strategy.
8282 /// - keyPath: Optional key path for decoding nested values.
8383 /// - Returns: A `TypedRequest` instance that decodes the response.
84- func decode< T> ( _ type : T . Type = T . self, with decoder: JSONDecoder , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
84+ func decode< T> ( _: T . Type = T . self, with decoder: JSONDecoder , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
8585 where T: Decodable & ExpressibleByNilLiteral {
8686 return . init( anyRequest: self , decoder: DecodableContent < T > ( decoder: { decoder } , keyPath: keyPath) )
8787 }
@@ -93,7 +93,7 @@ public extension AnyRequest {
9393 /// - decoder: The JSON decoder or decoding strategy.
9494 /// - keyPath: Optional key path for decoding nested values.
9595 /// - Returns: A `TypedRequest` instance that decodes the response.
96- func decode< T> ( _ type : T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
96+ func decode< T> ( _: T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) -> TypedRequest < T >
9797 where T: Decodable & ExpressibleByNilLiteral {
9898 return . init( anyRequest: self , decoder: DecodableContent < T > ( decoder: decoder, keyPath: keyPath) )
9999 }
@@ -105,7 +105,7 @@ public extension AnyRequest {
105105 /// - decoder: The decoding strategy or JSON decoder.
106106 /// - keyPath: Optional key path for nested decoding.
107107 /// - Returns: A result containing the decoded value or an error.
108- func decodeAsync< T> ( _ type : T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async -> Result < T , Error >
108+ func decodeAsync< T> ( _: T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async -> Result < T , Error >
109109 where T: Decodable {
110110 return await TypedRequest < T > ( anyRequest: self , decoder: DecodableContent < T > ( decoder: decoder, keyPath: keyPath) ) . async ( )
111111 }
@@ -118,7 +118,7 @@ public extension AnyRequest {
118118 /// - keyPath: Optional key path for nested decoding.
119119 /// - Throws: An error if decoding fails.
120120 /// - Returns: The decoded result.
121- func decodeAsyncWithThrowing< T> ( _ type : T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async throws -> T
121+ func decodeAsyncWithThrowing< T> ( _: T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async throws -> T
122122 where T: Decodable {
123123 return try await TypedRequest < T > ( anyRequest: self , decoder: DecodableContent < T > ( decoder: decoder, keyPath: keyPath) ) . asyncWithThrowing ( )
124124 }
@@ -130,7 +130,7 @@ public extension AnyRequest {
130130 /// - decoder: The decoding strategy or JSON decoder.
131131 /// - keyPath: Optional key path for nested decoding.
132132 /// - Returns: A result containing the decoded value or an error.
133- func decodeAsync< T> ( _ type : T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async -> Result < T , Error >
133+ func decodeAsync< T> ( _: T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async -> Result < T , Error >
134134 where T: Decodable & ExpressibleByNilLiteral {
135135 return await TypedRequest < T > ( anyRequest: self , decoder: DecodableContent < T > ( decoder: decoder, keyPath: keyPath) ) . async ( )
136136 }
@@ -143,7 +143,7 @@ public extension AnyRequest {
143143 /// - keyPath: Optional key path for nested decoding.
144144 /// - Throws: An error if decoding fails.
145145 /// - Returns: The decoded result.
146- func decodeAsyncWithThrowing< T> ( _ type : T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async throws -> T
146+ func decodeAsyncWithThrowing< T> ( _: T . Type = T . self, with decoder: JSONDecoding ? = nil , keyPath: DecodableKeyPath < T > = [ ] ) async throws -> T
147147 where T: Decodable & ExpressibleByNilLiteral {
148148 return try await TypedRequest < T > ( anyRequest: self , decoder: DecodableContent < T > ( decoder: decoder, keyPath: keyPath) ) . asyncWithThrowing ( )
149149 }
0 commit comments