Skip to content

Commit d4f640f

Browse files
committed
Add better docu
1 parent 3e8f716 commit d4f640f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: Sources/AsyncHTTPClient/RequestBag+StateMachine.swift

+4
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ extension RequestBag.StateMachine {
255255
}
256256
}
257257

258+
/// The response head has been received.
259+
///
260+
/// - Parameter head: The response' head
261+
/// - Returns: Whether the response should be forwarded to the delegate. Will be `false` if the request follows a redirect.
258262
mutating func receiveResponseHead(_ head: HTTPResponseHead) -> Bool {
259263
switch self.state {
260264
case .initialized, .queued:

0 commit comments

Comments
 (0)