Hunt Framework 3.1.0 发布,D 语言 Web 服务框架

栏目: 软件资讯 · 发布时间: 6年前

内容简介:Hunt Framework 是基于 DLang 语言编写的全栈 Web 框架。 专为快速开发 Web 服务端而设计,类似 PHP's Laravel、Java's Spring、 Python's Django! 本次主要更新如下: 加入安全相关的 GET 参数检验方式 改进工作...

Hunt Framework 是基于 DLang 语言编写的全栈  Web 框架。

专为快速开发 Web 服务端而设计,类似 PHP's Laravel、Java's Spring、 Python's  Django!

本次主要更新如下:

  1. 加入安全相关的 GET 参数检验方式
  2. 改进工作线程,加入 WokerGroup
  3. 底层库进行模块化
  4. 改进 Windows 平台 IO 稳定性

参数校验示例代码:

class UserController : Controller {
...
    @Action
    string user(@Min(1) uint id)
    {
        auto result = request.valid();
        if (!result.isValid())
        {
           string[string] messages = result.messages();
            // error
        }

        return null;
    }
}

 


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Traction: A Startup Guide to Getting Customers

Traction: A Startup Guide to Getting Customers

Gabriel Weinberg、Justin Mares / S-curves Publishing / 2014-8-25 / USD 14.99

Most startups end in failure. Almost every failed startup has a product. What failed startups don't have is traction -- real customer growth. This book introduces startup founders and employees to......一起来看看 《Traction: A Startup Guide to Getting Customers》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具