Skip to content

Commit

Permalink
Update docs, remove public form ThrowingContextTransform.init()
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 25, 2024
1 parent 2842c18 commit 417fa85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/HummingbirdRouter/ContextTransform.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public struct ContextTransform<Context: RouterRequestContext, HandlerContext: Ro
}

/// Router middleware that transforms the ``Hummingbird/RequestContext`` and uses it with the contained
/// Middleware chain. ``Used by RouteGroup/init(_:context:builder:)``
/// Middleware chain. Used by ``HummingbirdRouter/RouteGroup/init(_:context:builder:)``
public struct ThrowingContextTransform<Context: RouterRequestContext, HandlerContext: RouterRequestContext & ChildRequestContext, Handler: MiddlewareProtocol>: RouterMiddleware where Handler.Input == Request, Handler.Output == Response, Handler.Context == HandlerContext, HandlerContext.ParentContext == Context {
public typealias Input = Request
public typealias Output = Response
Expand All @@ -76,7 +76,7 @@ public struct ThrowingContextTransform<Context: RouterRequestContext, HandlerCon
/// - Parameters:
/// - context: RequestContext to convert to
/// - builder: RouteGroup builder
public init(
init(
to context: HandlerContext.Type,
@MiddlewareFixedTypeBuilder<Request, Response, HandlerContext> builder: () -> Handler
) {
Expand Down

0 comments on commit 417fa85

Please sign in to comment.