4267a229创建于 2024年8月2日历史提交
/*
    Copyright (c) [2023] [squallzhao]
    fountain is licensed under APACHE LICENSE, VERSION 2.0.
    You can use this software according to the terms and conditions of the APACHE LICENSE, VERSION 2.0.
    You may obtain a copy of APACHE LICENSE, VERSION 2.0 at: https://www.apache.org/licenses/LICENSE-2.0
*/
package microservice.web.server

public interface IRouter{
    func get(uri: String, servlet: IServlet): Unit;

    func post(uri: String, servlet: IServlet): Unit;

    func request(uri: String, servlet: IServlet): Unit

    func head(uri: String, servlet: IServlet): Unit;

    func put(uri: String, servlet: IServlet): Unit;

    func delete(uri: String, servlet: IServlet): Unit

    func options(uri: String, servlet: IServlet): Unit

    func all(uri: String, servlet: IServlet): Unit;

    func find(method: String, uri: String): Option<IServlet>;
}