Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Jan 6, 2024
1 parent 9e1306e commit cf5e76a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/HummingbirdCore/Response/ResponseBody.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ public struct HBResponseBody: Sendable {
}
}

/// Return HBResponseBody that returns trailing headers from its closure once all the
/// Create HBResponseBody that returns trailing headers from its closure once all the
/// body parts have been written
/// - Parameters:
/// - contentLength: Optional length of body
/// - write: closure provided with `writer` type that can be used to write to response body
/// trailing headers are returned from the closure after all the body parts have been
/// written
public static func withTrailingHeaders(
contentLength: Int? = nil,
_ write: @Sendable @escaping (any HBResponseBodyWriter) async throws -> HTTPFields?
Expand Down

0 comments on commit cf5e76a

Please sign in to comment.