File tree Expand file tree Collapse file tree 9 files changed +20
-12
lines changed
Sources/HTTPNetworking/Plugins Expand file tree Collapse file tree 9 files changed +20
-12
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public struct Adaptor: HTTPRequestAdaptor {
77
88 // MARK: Properties
99
10- let handler : AdaptationHandler
10+ private let handler : AdaptationHandler
1111
1212 // MARK: Initializers
1313
Original file line number Diff line number Diff line change @@ -23,15 +23,18 @@ public struct HeadersAdaptor: HTTPRequestAdaptor {
2323
2424 // MARK: Properties
2525
26- let headers : [ String : String ]
27- let strategy : CollisionStrategy
26+ /// The HTTP headers to be appended to an incoming request.
27+ public let headers : [ String : String ]
28+
29+ /// The strategy to use when the adaptor encounters a field collision.
30+ public let strategy : CollisionStrategy
2831
2932 // MARK: Initializers
3033
3134 /// Creates a ``HeadersAdaptor`` from the provided HTTP headers.
3235 ///
3336 /// - Parameters:
34- /// - headers: The HTTP headers to append to incoming requests .
37+ /// - headers: The HTTP headers to be appended to an incoming request .
3538 /// - strategy: The strategy to use when the adaptor encounters a field collision.
3639 public init ( headers: [ String : String ] , strategy: CollisionStrategy ) {
3740 self . headers = headers
Original file line number Diff line number Diff line change @@ -7,13 +7,14 @@ public struct ParametersAdaptor: HTTPRequestAdaptor {
77
88 // MARK: Properties
99
10- let items : [ URLQueryItem ]
10+ /// The query parameters to append to an incoming request.
11+ public let items : [ URLQueryItem ]
1112
1213 // MARK: Initializers
1314
1415 /// Creates a ``ParametersAdaptor`` from the provided query parameters.
1516 ///
16- /// - Parameter items: The query parameters to append to incoming requests .
17+ /// - Parameter items: The query parameters to append to an incoming request .
1718 public init ( items: [ URLQueryItem ] ) {
1819 self . items = items
1920 }
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ public struct ZipAdaptor: HTTPRequestAdaptor {
55
66 // MARK: Properties
77
8- let adaptors : [ any HTTPRequestAdaptor ]
8+ /// An array of adaptors that make up this adaptor.
9+ public let adaptors : [ any HTTPRequestAdaptor ]
910
1011 // MARK: Initializers
1112
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public struct Retrier: HTTPRequestRetrier {
77
88 // MARK: Properties
99
10- let handler : RetryHandler
10+ private let handler : RetryHandler
1111
1212 // MARK: Initializers
1313
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ public struct ZipRetrier: HTTPRequestRetrier {
55
66 // MARK: Properties
77
8- let retriers : [ any HTTPRequestRetrier ]
8+ /// An array of retriers that make up this retrier.
9+ public let retriers : [ any HTTPRequestRetrier ]
910
1011 // MARK: Initializers
1112
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ public struct StatusCodeValidator<S: Sequence>: HTTPResponseValidator where S.It
1515
1616 // MARK: Properties
1717
18- let acceptableStatusCodes : S
18+ /// The sequence of acceptable status codes for this validator.
19+ public let acceptableStatusCodes : S
1920
2021 // MARK: Initializers
2122
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public struct Validator: HTTPResponseValidator {
77
88 // MARK: Properties
99
10- let handler : ValidationHandler
10+ private let handler : ValidationHandler
1111
1212 // MARK: Initializers
1313
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ public struct ZipValidator: HTTPResponseValidator {
55
66 // MARK: Properties
77
8- let validators : [ any HTTPResponseValidator ]
8+ /// An array of validators that make up this validator.
9+ public let validators : [ any HTTPResponseValidator ]
910
1011 // MARK: Initializers
1112
You canβt perform that action at this time.
0 commit comments