mirror of
https://github.com/swift-server/async-http-client.git
synced 2026-06-02 07:37:34 +00:00
bccb075309
- Refactored code from `TaskHandler` into new method `HTTPClient.Request.createRequestHead` that creates an `HTTPRequestHead` and matching `RequestFramingMetadata` - Added required property `requestFramingMetadata` to `HTTPExecutingRequest` - Added property `requestFramingMetadata` to `RequestBag` Co-authored-by: Cory Benfield <lukasa@apple.com>
25 lines
706 B
Swift
25 lines
706 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the AsyncHTTPClient open source project
|
|
//
|
|
// Copyright (c) 2021 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
struct RequestFramingMetadata: Hashable {
|
|
enum Body: Hashable {
|
|
case none
|
|
case stream
|
|
case fixedSize(Int)
|
|
}
|
|
|
|
var connectionClose: Bool
|
|
var body: Body
|
|
}
|