From 57bd52eb39398206894b0384dfb99dbb0c5b72f6 Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Thu, 16 Apr 2026 17:08:58 -0700 Subject: [PATCH 1/3] Fix occured typo in HTTPHandler.swift Signed-off-by: SAY-5 --- Sources/AsyncHTTPClient/HTTPHandler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncHTTPClient/HTTPHandler.swift b/Sources/AsyncHTTPClient/HTTPHandler.swift index 4c4cc6f9a..e1a9381b8 100644 --- a/Sources/AsyncHTTPClient/HTTPHandler.swift +++ b/Sources/AsyncHTTPClient/HTTPHandler.swift @@ -802,7 +802,7 @@ public protocol HTTPClientResponseDelegate: AnyObject, Sendable { /// /// - parameters: /// - task: Current request context. - /// - error: Error that occured during response processing. + /// - error: Error that occurred during response processing. func didReceiveError(task: HTTPClient.Task, _ error: Error) /// Called when the complete HTTP request is finished. You must return an instance of your ``Response`` associated type. Will be called once, except if an error occurred. From 7e51615e3364ebd137cfe6f312e798457cec5823 Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Thu, 16 Apr 2026 17:09:00 -0700 Subject: [PATCH 2/3] Fix occured typo in RequestBag+StateMachine.swift Signed-off-by: SAY-5 --- Sources/AsyncHTTPClient/RequestBag+StateMachine.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/AsyncHTTPClient/RequestBag+StateMachine.swift b/Sources/AsyncHTTPClient/RequestBag+StateMachine.swift index 8f5cd37ce..5fa761288 100644 --- a/Sources/AsyncHTTPClient/RequestBag+StateMachine.swift +++ b/Sources/AsyncHTTPClient/RequestBag+StateMachine.swift @@ -38,7 +38,7 @@ extension RequestBag { case queued(HTTPRequestScheduler, RedirectHandler?) /// if the deadline was exceeded while in the `.queued(_:)` state, /// we wait until the request pool fails the request with a potential more descriptive error message, - /// if a connection failure has occured while the request was queued. + /// if a connection failure has occurred while the request was queued. case deadlineExceededWhileQueued case executing(HTTPRequestExecutor, RequestStreamState, ResponseStreamState) case finished(error: Error?) @@ -545,7 +545,7 @@ extension RequestBag.StateMachine { case .finished(error: .none): preconditionFailure( - "Invalid state... If no error occured, this must not be called, after the request was finished" + "Invalid state... If no error occurred, this must not be called, after the request was finished" ) case .modifying: From 449bace0a0410f257f9bb73b626a59906c56fc0e Mon Sep 17 00:00:00 2001 From: SAY-5 Date: Thu, 16 Apr 2026 17:09:02 -0700 Subject: [PATCH 3/3] Fix occured typo in Transaction+StateMachine.swift Signed-off-by: SAY-5 --- .../AsyncHTTPClient/AsyncAwait/Transaction+StateMachine.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncHTTPClient/AsyncAwait/Transaction+StateMachine.swift b/Sources/AsyncHTTPClient/AsyncAwait/Transaction+StateMachine.swift index 4128998b9..b5d320bc6 100644 --- a/Sources/AsyncHTTPClient/AsyncAwait/Transaction+StateMachine.swift +++ b/Sources/AsyncHTTPClient/AsyncAwait/Transaction+StateMachine.swift @@ -163,7 +163,7 @@ extension Transaction { } case .executing(let context, let requestStreamState, .finished): - // an error occured after full response received, but before the full request was sent + // an error occurred after full response received, but before the full request was sent self.state = .finished(error: error) switch requestStreamState { case .paused(let bodyStreamContinuation):