Instance Methodvapor 4.106.2Vapor
delete(_:use:)
RoutesBuilder+Concurrency.swift:107@discardableResult @preconcurrency func delete<Response>(_ path: [PathComponent], use closure: @escaping (Request) async throws -> Response) -> Route where Response : AsyncResponseEncodable
Other members in extension
Instance members
func delete<Response>(PathComponent..., use: @escaping (Request) throws -> Response
) -> Route func delete<Response>(PathComponent..., use: @escaping (Request) async throws -> Response
) -> Route func delete<Response>([PathComponent], use: @escaping (Request) throws -> Response
) -> Route func get<Response>(PathComponent..., use: @escaping (Request) throws -> Response
) -> Route func get<Response>(PathComponent..., use: @escaping (Request) async throws -> Response
) -> Route func get<Response>([PathComponent], use: @escaping (Request) throws -> Response
) -> Route func get<Response>([PathComponent], use: @escaping (Request) async throws -> Response
) -> Route func group(PathComponent..., configure: (RoutesBuilder) throws -> ()
) rethrows Creates a new
Router
that will automatically prepend the supplied path components.func group(Middleware..., configure: (RoutesBuilder) throws -> ()
) rethrows Creates a new
Router
wrapped in the supplied variadicMiddleware
.func group([PathComponent], configure: (RoutesBuilder) throws -> ()
) rethrows Creates a new
Router
that will automatically prepend the supplied path components.func group([Middleware], configure: (RoutesBuilder) throws -> ()
) rethrows Creates a new
Router
wrapped in the supplied array ofMiddleware
.func grouped(PathComponent...
) -> RoutesBuilder Creates a new
Router
that will automatically prepend the supplied path components.func grouped(Middleware...
) -> RoutesBuilder Creates a new
Router
wrapped in the supplied variadicMiddleware
.func grouped([PathComponent]
) -> RoutesBuilder Creates a new
Router
that will automatically prepend the supplied path components.func grouped([Middleware]
) -> RoutesBuilder Creates a new
Router
wrapped in the supplied array ofMiddleware
.func on<Response>(HTTPMethod, PathComponent..., body: HTTPBodyStreamStrategy, use: @escaping (Request) throws -> Response
) -> Route func on<Response>(HTTPMethod, PathComponent..., body: HTTPBodyStreamStrategy, use: @escaping (Request) async throws -> Response
) -> Route func on<Response>(HTTPMethod, [PathComponent], body: HTTPBodyStreamStrategy, use: @escaping (Request) throws -> Response
) -> Route func on<Response>(HTTPMethod, [PathComponent], body: HTTPBodyStreamStrategy, use: @escaping (Request) async throws -> Response
) -> Route func patch<Response>(PathComponent..., use: @escaping (Request) throws -> Response
) -> Route func patch<Response>(PathComponent..., use: @escaping (Request) async throws -> Response
) -> Route func patch<Response>([PathComponent], use: @escaping (Request) throws -> Response
) -> Route func patch<Response>([PathComponent], use: @escaping (Request) async throws -> Response
) -> Route func post<Response>(PathComponent..., use: @escaping (Request) throws -> Response
) -> Route func post<Response>(PathComponent..., use: @escaping (Request) async throws -> Response
) -> Route func post<Response>([PathComponent], use: @escaping (Request) throws -> Response
) -> Route func post<Response>([PathComponent], use: @escaping (Request) async throws -> Response
) -> Route func put<Response>(PathComponent..., use: @escaping (Request) throws -> Response
) -> Route func put<Response>(PathComponent..., use: @escaping (Request) async throws -> Response
) -> Route func put<Response>([PathComponent], use: @escaping (Request) throws -> Response
) -> Route func put<Response>([PathComponent], use: @escaping (Request) async throws -> Response
) -> Route func register(collection: RouteCollection
) throws Registers all of the routes in the group to this router.
func responseCompression(HTTPHeaders.ResponseCompression, force: Bool
) -> RoutesBuilder Override the response compression settings for a route.
func webSocket(PathComponent..., maxFrameSize: WebSocketMaxFrameSize, shouldUpgrade: @escaping ((Request) -> EventLoopFuture<HTTPHeaders?>), onUpgrade: @escaping (Request, WebSocket) -> ()
) -> Route Adds a route for opening a web socket connection
func webSocket(PathComponent..., maxFrameSize: WebSocketMaxFrameSize, shouldUpgrade: @escaping ((Request) async throws -> HTTPHeaders?), onUpgrade: @escaping (Request, WebSocket) async -> ()
) -> Route Adds a route for opening a web socket connection
func webSocket([PathComponent], maxFrameSize: WebSocketMaxFrameSize, shouldUpgrade: @escaping ((Request) -> EventLoopFuture<HTTPHeaders?>), onUpgrade: @escaping (Request, WebSocket) -> ()
) -> Route Adds a route for opening a web socket connection
func webSocket([PathComponent], maxFrameSize: WebSocketMaxFrameSize, shouldUpgrade: @escaping ((Request) async throws -> HTTPHeaders?), onUpgrade: @escaping (Request, WebSocket) async -> ()
) -> Route Adds a route for opening a web socket connection