UNPKG

honestjs

Version:

HonestJS - a modern web framework built on top of Hono

44 lines (43 loc) 1.82 kB
/** * GET method decorator * The GET method requests a representation of the specified resource. * Requests using GET should only retrieve data and should not contain a request content. * @param path - The route path */ export declare const Get: (path?: string, options?: import("..").HttpMethodOptions) => MethodDecorator; /** * POST method decorator * The POST method submits an entity to the specified resource, * often causing a change in state or side effects on the server. * @param path - The route path */ export declare const Post: (path?: string, options?: import("..").HttpMethodOptions) => MethodDecorator; /** * PUT method decorator * The PUT method replaces all current representations of the target resource with the request content. * @param path - The route path */ export declare const Put: (path?: string, options?: import("..").HttpMethodOptions) => MethodDecorator; /** * DELETE method decorator * The DELETE method deletes the specified resource. * @param path - The route path */ export declare const Delete: (path?: string, options?: import("..").HttpMethodOptions) => MethodDecorator; /** * PATCH method decorator * The PATCH method applies partial modifications to a resource. * @param path - The route path */ export declare const Patch: (path?: string, options?: import("..").HttpMethodOptions) => MethodDecorator; /** * OPTIONS method decorator * The OPTIONS method describes the communication options for the target resource. * @param path - The route path */ export declare const Options: (path?: string, options?: import("..").HttpMethodOptions) => MethodDecorator; /** * ALL method decorator (matches all HTTP methods) * @param path - The route path */ export declare const All: (path?: string, options?: import("..").HttpMethodOptions) => MethodDecorator;