GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - segmentfault/node-tiny-http: A tiny node.js http framework

BranchesTags
Open more actions menu

Latest commit

 

History

41 Commits
41 Commits

Folders and files

NameName
Last commit message
Last commit date
build
build
 
 
examples
examples
 
 
src
src
 
 
.gitignore
.gitignore
 
 
Cakefile
Cakefile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

一个简单的可扩展的node.js web框架

为什么要开发这个框架?

目前node.js上的http框架已经很多,大名鼎鼎的express和koa都有大量的用户。但是我在使用后发现在很多项目中,它们在某些方面显得过于繁琐,而有些需要重度使用的地方又处理得太过简陋。因此我们结合自己的项目经验开发了这款web框架。目的是打造一款便于使用的,API友好的,可以高度自定义的框架。

安装

我们会及时发布到npm上,你只需要在项目中

npm install node-tiny-http

使用

Hello World

通常我们用一个最简单的例子来展示框架的基本运行情况

var Http = require('node-tiny-http'),
    http = new Http;

http.get('/', function (done) {
    return done('content', 'Hello World!');
});

http.listen({ host : 'localhost', port : 9999 });

打开浏览器并访问http://localhost:9999/即可看到效果。

About

A tiny node.js http framework

Resources

Readme
MIT license
Activity
Custom properties

Stars

15 stars

Watchers

3 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.