diff --git a/Sources/HTTPAPIs/Client/HTTPClient.swift b/Sources/HTTPAPIs/Client/HTTPClient.swift index 0d45155..f2a44b1 100644 --- a/Sources/HTTPAPIs/Client/HTTPClient.swift +++ b/Sources/HTTPAPIs/Client/HTTPClient.swift @@ -12,11 +12,6 @@ // //===----------------------------------------------------------------------===// -// We are using exported imports so that developers don't have to -// import multiple modules just to execute an HTTP request -@_exported public import AsyncStreaming -@_exported public import HTTPTypes - /// A protocol that defines the interface for an HTTP client. /// /// ``HTTPClient`` provides asynchronous request execution with streaming request diff --git a/Sources/HTTPAPIs/Exports.swift b/Sources/HTTPAPIs/Exports.swift new file mode 100644 index 0000000..5d92144 --- /dev/null +++ b/Sources/HTTPAPIs/Exports.swift @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the Swift HTTP API Proposal open source project +// +// Copyright (c) 2026 Apple Inc. and the Swift HTTP API Proposal project authors +// Licensed under Apache License v2.0 +// +// See LICENSE.txt for license information +// See CONTRIBUTORS.txt for the list of Swift HTTP API Proposal project authors +// +// SPDX-License-Identifier: Apache-2.0 +// +//===----------------------------------------------------------------------===// + +@_exported public import AsyncStreaming +@_exported public import HTTPTypes diff --git a/Sources/HTTPAPIs/Server/HTTPServerClosureRequestHandler.swift b/Sources/HTTPAPIs/Server/HTTPServerClosureRequestHandler.swift index 63f4c94..3de99df 100644 --- a/Sources/HTTPAPIs/Server/HTTPServerClosureRequestHandler.swift +++ b/Sources/HTTPAPIs/Server/HTTPServerClosureRequestHandler.swift @@ -12,8 +12,6 @@ // //===----------------------------------------------------------------------===// -public import HTTPTypes - /// A closure-based implementation of ``HTTPServerRequestHandler``. /// /// ``HTTPServerClosureRequestHandler`` provides a convenient way to create an HTTP request handler diff --git a/Sources/HTTPAPIs/Server/HTTPServerRequestHandler.swift b/Sources/HTTPAPIs/Server/HTTPServerRequestHandler.swift index eb290d9..d781761 100644 --- a/Sources/HTTPAPIs/Server/HTTPServerRequestHandler.swift +++ b/Sources/HTTPAPIs/Server/HTTPServerRequestHandler.swift @@ -12,8 +12,6 @@ // //===----------------------------------------------------------------------===// -public import HTTPTypes - /// A protocol that defines the contract for handling HTTP server requests. /// /// ``HTTPServerRequestHandler`` provides a structured way to process incoming HTTP requests diff --git a/Sources/HTTPAPIs/Server/HTTPServerResponseSender.swift b/Sources/HTTPAPIs/Server/HTTPServerResponseSender.swift index c950cfb..c1d2ed3 100644 --- a/Sources/HTTPAPIs/Server/HTTPServerResponseSender.swift +++ b/Sources/HTTPAPIs/Server/HTTPServerResponseSender.swift @@ -12,8 +12,6 @@ // //===----------------------------------------------------------------------===// -public import HTTPTypes - /// A struct that ensures a single non-informational HTTP response is sent per request. /// /// ``HTTPResponseSender`` enforces structured response handling by allowing only one call to