File tree Expand file tree Collapse file tree
NetworkLayerInterfaces/Classes/Core/Models
NetworkLayer/Classes/Core/Builders/RequestBuilder/RequestBodyEncoder
Tests/NetworkLayerTests/Classes/Tests/UnitTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ struct RequestBodyEncoder: IRequestBodyEncoder {
2525 request. httpBody = data
2626 case let . encodable( encodable) :
2727 request. httpBody = try jsonEncoder. encode ( encodable)
28- case let . dictonary ( dictionary) :
28+ case let . dictionary ( dictionary) :
2929 request. httpBody = try JSONSerialization . data ( withJSONObject: dictionary)
3030 }
3131 }
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public protocol IRequest {
3030 /// The HTTP method.
3131 var httpMethod : HTTPMethod { get }
3232
33- /// A dictonary that contains the request's body.
33+ /// A dictionary that contains the request's body.
3434 var httpBody : RequestBody ? { get }
3535
3636 /// An alias for the cache policy.
@@ -58,7 +58,7 @@ public extension IRequest {
5858 60
5959 }
6060
61- /// A dictonary that contains the request's body.
61+ /// A dictionary that contains the request's body.
6262 var httpBody : RequestBody ? {
6363 nil
6464 }
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ import Foundation
88public enum RequestBody {
99 case data( Data )
1010 case encodable( Encodable )
11- case dictonary ( [ String : Any ] )
11+ case dictionary ( [ String : Any ] )
1212}
Original file line number Diff line number Diff line change 11//
22// network-layer
3- // Copyright © 2023 Space Code. All rights reserved.
3+ // Copyright © 2024 Space Code. All rights reserved.
44//
55
66import Foundation
You can’t perform that action at this time.
0 commit comments