首页 > 其他 > 详细

Nancy

时间:2016-01-21 19:01:53      阅读:119      评论:0      收藏:0      [点我收藏+]

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono http://nancyfx.org

Meet Nancy 

Nancy is a lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono. The goal of the framework is to stay out of the way as much as possible and provide a super-duper-happy-path to all interactions.

Nancy is designed to handle DELETEGETHEADOPTIONSPOSTPUT and PATCH requests and provides a simple, elegant, Domain Specific Language (DSL) for returning a response with just a couple of keystrokes, leaving you with more time to focus on the important bits.. your code and your application.

Write your application

public class Module : NancyModule
{
    public Module()
    {
        Get["/greet/{name}"] = x => {
            return string.Concat("Hello ", x.name);
        };
    }
}

Compile, run and enjoy the simple, elegant design!

 

Ref:.NET的微型Web框架 Nancy

Nancy

原文:http://www.cnblogs.com/ncore/p/5148751.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!