Files
async-http-client/Sources/AsyncHTTPClient/StringConvertibleInstances.swift
Johannes Weiss 86db162a11 logging support (#227)
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.
2020-06-09 15:55:23 +01:00

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)"
}
}