Skip to content

Commit

Permalink
HTTPResponseStatus -> HTTPResponse.Status (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidepelican authored Mar 29, 2024
1 parent fb2b32e commit 1f7d3c3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Router/ResponseGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extension ByteBuffer: ResponseGenerator {
}
}

/// Extend HTTPResponseStatus to conform to ResponseGenerator
/// Extend HTTPResponse.Status to conform to ResponseGenerator
extension HTTPResponse.Status: ResponseGenerator {
/// Generate response with this response status code
public func response(from request: Request, context: some BaseRequestContext) -> Response {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Router/Router.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import NIOCore
/// router.get("string") { _, _ -> String in
/// return "string"
/// }
/// router.post("status") { _, _ -> HTTPResponseStatus in
/// router.post("status") { _, _ -> HTTPResponse.Status in
/// return .ok
/// }
/// router.data("data") { request, context -> ByteBuffer in
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Server/Response.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extension Response {
/// must be used in the second request.
case temporary

/// Associated `HTTPResponseStatus` for this redirect type.
/// Associated `HTTPResponse.Status` for this redirect type.
public var status: HTTPResponse.Status {
switch self {
case .permanent: return .movedPermanently
Expand Down

0 comments on commit 1f7d3c3

Please sign in to comment.