Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Sources/HTTPAPIs/Server/HTTPServerRequestHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public import AsyncStreaming
/// ```swift
/// struct EchoHandler<
/// Context: HTTPServerCapability.RequestContext & ~Copyable,
/// Reader: AsyncReader & ~Copyable,
/// Reader: AsyncReader & ~Copyable & ~Escapable,
/// ResponseSender: HTTPResponseSender & ~Copyable
/// >: HTTPServerRequestHandler
/// where
Expand All @@ -55,8 +55,7 @@ public protocol HTTPServerRequestHandler<RequestContext, Reader, ResponseSender>
associatedtype RequestContext: HTTPServerCapability.RequestContext, ~Copyable

/// The body reader type used to stream request body bytes and trailers.
// TODO: Check if we should allow ~Escapable readers https://github.com/apple/swift-http-api-proposal/issues/13
associatedtype Reader: AsyncReader, ~Copyable
associatedtype Reader: AsyncReader, ~Copyable, ~Escapable
where Reader.ReadElement == UInt8, Reader.FinalElement == HTTPFields?

/// The type used to write response head, body, and trailing fields.
Expand Down
Loading