Required Instance Methodhummingbird 2.3.0Hummingbird

    on(_:method:responder:)

    Add responder to call when path and method are matched

    RouterMethods.swift:29
    @discardableResult func on<Responder>(_ path: RouterPath, method: HTTPRequest.Method, responder: Responder) -> Self where Responder : HTTPResponder, Self.Context == Responder.Context

    Parameters

    path

    Path to match

    method

    Request method to match

    responder

    Responder to call if match is made

    Returns

    self

    Other requirements

    Type members

    Instance members