Skip to content

Commit b735606

Browse files
committed
πŸ“š Small cleanup to basic plugin documentation.
1 parent f003d20 commit b735606

File tree

9 files changed

+20
-12
lines changed

9 files changed

+20
-12
lines changed

β€ŽSources/HTTPNetworking/Plugins/Adaptors/Adaptor.swiftβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

β€ŽSources/HTTPNetworking/Plugins/Adaptors/HeadersAdaptor.swiftβ€Ž

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

β€ŽSources/HTTPNetworking/Plugins/Adaptors/ParametersAdaptor.swiftβ€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

β€ŽSources/HTTPNetworking/Plugins/Adaptors/ZipAdaptor.swiftβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

β€ŽSources/HTTPNetworking/Plugins/Retriers/Retrier.swiftβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

β€ŽSources/HTTPNetworking/Plugins/Retriers/ZipRetrier.swiftβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

β€ŽSources/HTTPNetworking/Plugins/Validators/StatusCodeValidator.swiftβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

β€ŽSources/HTTPNetworking/Plugins/Validators/Validator.swiftβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

β€ŽSources/HTTPNetworking/Plugins/Validators/ZipValidator.swiftβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
Β (0)