Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A tiny node.js http framework

License

NotificationsYou must be signed in to change notification settings

segmentfault/node-tiny-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

为什么要开发这个框架?

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

安装

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

npm install node-tiny-http

使用

Hello World

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

varHttp=require('node-tiny-http'),http=newHttp;http.get('/',function(done){returndone('content','Hello World!');});http.listen({host :'localhost',port :9999});

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

About

A tiny node.js http framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp