十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
HuntLabs 很高興的趕在大年三十之前宣布:通過 Hunt framework 1.0.0 后面的一些版本( 1.1.x / 1.5.x)迭代終于迎來 2.0.0,這個版本對我們來說很重要,對整個框架的完整性和易用性再一次得到了提升。
創(chuàng)新互聯(lián)自2013年創(chuàng)立以來,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項目成都做網(wǎng)站、成都網(wǎng)站制作網(wǎng)站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元雨花做網(wǎng)站,已為上家服務(wù),為雨花各地企業(yè)和個人服務(wù),聯(lián)系電話:028-86922220
Hunt framework 是一個使用 Dlang 語言開發(fā)的全棧 web 框架,易用性和完整性都貼近于 Laravel / Django / Spring boot 等主流框架的設(shè)計,優(yōu)勢主要體現(xiàn)在部署方面,不需要搭建運行環(huán)境就可開啟 web 服務(wù)。而且 D 語言自身是一個性能極高的編譯型語言,我們可以基于 hunt framework 非常簡單的開發(fā)出高性能的 web 服務(wù)。
更多 HTTP 標準 API 進行支持
完成 HTTP 2.0 支持,包含 H2 和 H2C
I/O 模塊性能改進
Collie 庫使用新的 hunt-http 庫進行替代
數(shù)據(jù)庫相關(guān)模塊的增強,包含分頁器和連接池修復(fù)
新的模板引擎解析器,更好的兼容 twig 和 jinja2 語法
表單校驗器的實現(xiàn)
面包屑模塊設(shè)計與實現(xiàn)
I18N 多語言模塊完整的實現(xiàn)
基于 STOMP 協(xié)議的 WebSocket 模塊實現(xiàn)
移植了 java 的大部分容器對象方便開發(fā)者使用
加強了單元測試模塊和更多的示例代碼
Name | Version |
---|---|
hunt | 1.0.0 |
hunt-cache | 0.2.2 |
hunt-database | 1.1.0 |
hunt-entity | 2.2.0 |
hunt-http | 0.1.1 |
hunt-imf | 0.0.4 |
hunt-net | 0.1.0 |
hunt-security | 0.0.6 |
hunt-sql | 1.0.5 |
hunt-stomp | 0.0.3 |
hunt-trace | 0.1.7 |
hunt-validation | 0.0.2 |
boringssl | 0.0.1 |
dredis | 0.0.9 |
libmemcached | 1.1.1 |
openssl | 1.1.6+1.0.1g |
protobuf | 0.4.0 |
rocksdb | 0.0.7 |
WELCOME=Welcome to the world of hunt framework. VERSION_TITLE=Hunt framework version %s
hunt.application.defaultLanguage = en-us hunt.application.languages = zh-cn,en-us
{{ trans("VERSION_TITLE", huntVersion) }}
string s = trans("VERSION_TITLE", "2.0.0");
app.onBreadcrumbsInitializing((BreadcrumbsManager breadcrumbs) { breadcrumbs.register("home", (Breadcrumbs trail, Object[] params...) { trail.push("Home", "/home"); }); breadcrumbs.register("index.show", (Breadcrumbs trail, Object[] params...) { trail.parent("home"); trail.push("About", url("index.show")); }); }
view.assign("breadcrumbs", breadcrumbsManager.generate("home"));
{% if breadcrumbs.defined and breadcrumbs.length>0 %}{% endif %}{% for item in breadcrumbs %} {% if item.link and not loop.last %}
- {{ item.title }}
{% else %}- {{ item.title }}
{% endif %} {% endfor %}
HTTP client
HTTP server
WebSocket client
WebSocket server
HTTP2
See: https://github.com/huntlabs/hunt-http/tree/master/examples
@Action string upload() { string message; if (request.hasFile("file1")) { auto file = request.file("file1"); if (file.isValid()) { // File save path: file.path() // Origin name: file.originalName() // File extension: file.extension() // File mimetype: file.mimeType() if (file.store("uploads/myfile.zip")) { message = "upload is successed"; } else { message = "save as error"; } } else { message = "file is not valid"; } } else { message = "not get this file"; } return message; }
module app.form.LoginForm; import hunt; class LoginForm : Form { mixin MakeForm; @Length(6,20) string username; @Length(8,16) string password; }
@Action string login(LoginForm loginForm) { string message; auto result = loginForm.valid(); // TODO if(!result.isValid()) { message = "Valid error message : " ~ result.messages(); } else { message = "OK"; } return message; }
@Action Response download() { return new FileResponse("/tmp/orders-20190122.zip"); }
https://github.com/huntlabs/hunt-entity/wiki/Pagination
https://github.com/huntlabs/hunt-entity/wiki/EQL
https://github.com/huntlabs/hunt-entity/wiki/Validation
New modules used to tracing the requests in microservice architectures.
The core I/O library is refactored, and is called Hunt.
See: https://github.com/huntlabs/hunt-minihttp
hunt-skeleton: https://github.com/huntlabs/hunt-skeleton
hunt-examples: https://github.com/huntlabs/hunt-examples
hunt-minihttp: https://github.com/huntlabs/hunt-minihttp
hunt-http: https://github.com/huntlabs/hunt-http/tree/master/examples
https://www.huntlabs.net/
https://github.com/huntlabs/hunt-framework
https://gitee.com/huntlabs/hunt-framework