mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-05-03 07:32:29 +00:00
86db162a11
Motivation: AsyncHTTPClient is not a simple piece of software and nowadays also quite stateful. To debug issues, the user may want logging. Modification: Support passing a logger to the request methods. Result: Debugging simplified.
32 lines
958 B
Swift
32 lines
958 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the AsyncHTTPClient open source project
|
|
//
|
|
// Copyright (c) 2020 Apple Inc. and the AsyncHTTPClient project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
extension Connection: CustomStringConvertible {
|
|
var description: String {
|
|
return "\(self.channel)"
|
|
}
|
|
}
|
|
|
|
extension HTTP1ConnectionProvider.Waiter: CustomStringConvertible {
|
|
var description: String {
|
|
return "HTTP1ConnectionProvider.Waiter(\(self.preference))"
|
|
}
|
|
}
|
|
|
|
extension HTTPClient.EventLoopPreference: CustomStringConvertible {
|
|
public var description: String {
|
|
return "\(self.preference)"
|
|
}
|
|
}
|