Skip to main content
Module

x/drash/mod.ts

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
File
////////////////////////////////////////////////////////////////////////////////// FILE MARKER - IMPORTS ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
import * as Interfaces from "./src/interfaces.ts";import * as Types from "./src/types.ts";import { Server } from "./src/http/server.ts";
////////////////////////////////////////////////////////////////////////////////// FILE MARKER - EXPORTS - CLASSES /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function getVersion() { const url = import.meta.url; if (url.match(/v\d/) === null) { return null; } return "v" + url.split("v")[1].split("/")[0];}export const version = getVersion();
// Dictionariesexport { mimeDb as MimeDb } from "./src/dictionaries/mime_db.ts";
// Errorsexport * as Errors from "./src/errors.ts";
// Httpexport { DrashRequest as Request } from "./src/http/request.ts";export { Resource } from "./src/http/resource.ts";export { DrashResponse as Response } from "./src/http/response.ts";export { Service } from "./src/http/service.ts";export { ErrorHandler } from "./src/http/error_handler.ts";
// Export members from the IMPORTS section aboveexport { Interfaces, Server, Types };
export type { IErrorHandler, IResource, IService } from "./src/interfaces.ts";