Nancy 是属于 .Net 基金会的一个项目，本文将简要介绍该项目相关的信息。
Nancy is a lightweight, low-ceremony, framework for building HTTP based services on .NET Framework/Core 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
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
The “super-duper-happy-path” (or SDHP if you’re ‘down with the kids’ ;-)) is a phrase we coined to describe the ethos of Nancy; and providing the “super-duper-happy-path” experience is something we strive for in all of our APIs.
While it’s hard to pin down exactly what it is, it’s a very emotive term after all, but the basic ideas behind it are:
- “It just works” - you should be able to pick things up and use them without any mucking about. Added a new module? That’s automatically discovered for you. Brought in a new View Engine? All wired up and ready to go without you having to do anything else. Even if you add a new dependency to your module, by default we’ll locate that and inject it for you - no configuration required.
- “Easily customisable” - even though “it just works”, there shouldn’t be any barriers that get in the way of customisation should you want to work the way you want to work with the components that you want to use. Want to use another container? No problem! Want to tweak the way routes are selected? Go ahead! Through our bootstrapper approach all of these things should be a piece of cake.
- “Low ceremony” - the amount of “Nancy code” you should need in your application should be minimal. The important part of any Nancy application is your code - our code should get out of your way and let you get on with building awesome applications. As a testament to this it’s actually possible to fit a functional Nancy application into a single Tweet :-)
- “Low friction” - when building software with Nancy the APIs should help you get where you want to go, rather than getting in your way. Naming should be obvious, required configuration should be minimal, but power and extensibility should still be there when you need it.
Above all, creating an application with Nancy should be a pleasure, and hopefully fun! But without sacrificing the power or extensibility that you may need as your application grows.
以上《英文介绍》摘录自 .NET Foundation 的项目介绍 。原文受原项目许可证保护。
- ASP.NET SignalR
- ASP.NET MVC, Web API and Web Pages (Razor)
- ASP.NET Ajax Control Toolkit
- ASP.NET Core
- Microsoft Azure SDK for .NET
- Microsoft Azure WebJobs SDK
- Chemistry Add-in for Word
- Couchbase Lite for .NET
- DNN Platform
- .NET Compiler Platform ("Roslyn")
- .NET Micro Framework
- .NET SDK For Hadoop
- DotVVM: Component-based MVVM framework for ASP.NET
- Entity Framework
- Managed Extensibility Framework (MEF, MEF2)
- Microsoft Web Protection Library
- MVVM Light Toolkit
- .NET Core
- NUnit Test Framework
- Open Live Writer
- Open XML SDK
- Orchard CMS
- OWIN Authentication Middleware (Katana Project)
- Peachpie Compiler Platform
- Reactive Extensions for .NET
- Salesforce Toolkits for .NET
- System.Drawing (Mono)
- Telerik UI for UWP
- UWP Community Toolkit
- Windows Phone Toolkit
- Windows Template Studio
- Windows Forms
- WiX Toolset
- WorldWide Telescope
- Windows Presentation Foundation (WPF)