Implemented the DocC archives support for the middleware #2

Merged
javier merged 29 commits from middleware/xcode-documentation into main 2025-09-26 23:54:08 +00:00
2 changed files with 18 additions and 8 deletions
Showing only changes of commit a274547977 - Show all commits
@@ -0,0 +1,18 @@
// ===----------------------------------------------------------------------===
//
// This source file is part of the Hummingbird DocC Middleware open source project
//
// Copyright (c) 2025 Röck+Cöde VoF. and the Hummingbird DocC Middleware project authors
// Licensed under the EUPL 1.2 or later.
//
// See LICENSE for license information
// See CONTRIBUTORS for the list of Hummingbird DocC Middleware project authors
//
// ===----------------------------------------------------------------------===
import protocol Hummingbird.RequestContext
import struct Hummingbird.Request
/// A pseudo-type that contains data about a request and its related context.
typealias ContextualInfo = (request: Request, context: any RequestContext)
@@ -10,20 +10,12 @@
//
// ===----------------------------------------------------------------------===
import protocol Hummingbird.RequestContext
import struct Hummingbird.Request
import struct Hummingbird.Response
import struct Logging.Logger
/// A use case that produces a redirect response based on a given URI path.
struct RedirectURIUseCase {
// MARK: Type aliases
/// A pseudo-type that contains data about a request and its related context.
typealias ContextualInfo = (request: Request, context: any RequestContext)
// MARK: Properties
/// A type that interacts with the logging system.