Skip to content

Commit

Permalink
Html.Node adopts AsyncResponseEncodable
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansergheev committed Aug 10, 2022
1 parent 51a63ce commit 0b08040
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/HtmlVaporSupport/HtmlVaporSupport.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ extension Html.Node: ResponseEncodable {
))
}
}

extension Html.Node: AsyncResponseEncodable {
public func encodeResponse(for request: Request) async throws -> Response {
try await encodeResponse(for: request).get()
}
}

0 comments on commit 0b08040

Please sign in to comment.