码迷,mamicode.com
首页 > 其他好文 > 详细

Nancy

时间:2016-01-21 19:01:56      阅读:143      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!