Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Jan 31, 2025
1 parent 23bd893 commit 70a784a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ extension ResponseBodyWrapper: Decodable {
/// Initializes a new instance of `ResponseBodyWrapper` from a decoder.
///
/// - Parameter decoder: The decoder to use for decoding the response body.
/// - Throws: An error if the decoder is not a `ResponseDecoding` instance or if the response body cannot be decoded.
///
/// Example usage:
/// ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ extension ResponseErrorBodyWrapper: Decodable {
/// Initializes a new instance of `ResponseErrorBodyWrapper` from a decoder.
///
/// - Parameter decoder: The decoder to use for decoding the error response body.
/// - Throws: An error if the decoder is not a `ResponseDecoding` instance or if the response body cannot be decoded.
///
/// Example usage:
/// ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public struct ValidateStatus200BodyStrategy: ResponseBodyDecodingStrategy {
///
/// This method always returns `false` for status code 200, indicating that empty content is not allowed.
///
/// - Parameter statusCode: The HTTP status code of the response.
/// - Returns: A Boolean value indicating whether empty content is allowed.
public static func allowsEmptyContent(for _: Int) -> Bool {
false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public struct ValidateStatus303BodyStrategy: ResponseBodyDecodingStrategy {
///
/// This method always returns `true` for status code 303, indicating that empty content is allowed.
///
/// - Parameter statusCode: The HTTP status code of the response.
/// - Returns: A Boolean value indicating whether empty content is allowed.
public static func allowsEmptyContent(for _: Int) -> Bool {
true
Expand Down

0 comments on commit 70a784a

Please sign in to comment.