From cf5e76aa4ffc0ca6d235c907a31ffbf60e595a24 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Sat, 6 Jan 2024 15:11:05 +0000 Subject: [PATCH] Comment --- Sources/HummingbirdCore/Response/ResponseBody.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Sources/HummingbirdCore/Response/ResponseBody.swift b/Sources/HummingbirdCore/Response/ResponseBody.swift index 3d5f4873f..aaf08b5ee 100644 --- a/Sources/HummingbirdCore/Response/ResponseBody.swift +++ b/Sources/HummingbirdCore/Response/ResponseBody.swift @@ -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?