Defined the ContextualInfo pseudo type in the library target.
This commit is contained in:
@@ -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,19 +10,11 @@
|
|||||||
//
|
//
|
||||||
// ===----------------------------------------------------------------------===
|
// ===----------------------------------------------------------------------===
|
||||||
|
|
||||||
import protocol Hummingbird.RequestContext
|
|
||||||
|
|
||||||
import struct Hummingbird.Request
|
|
||||||
import struct Hummingbird.Response
|
import struct Hummingbird.Response
|
||||||
import struct Logging.Logger
|
import struct Logging.Logger
|
||||||
|
|
||||||
/// A use case that produces a redirect response based on a given URI path.
|
/// A use case that produces a redirect response based on a given URI path.
|
||||||
struct RedirectURIUseCase {
|
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
|
// MARK: Properties
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user