Actix-web 0.7.9/10/11 齐发,新特性、更新/修复等越发完善

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

内容简介:Actix-web 0.7.9 发布内容: 添加 添加了客户端关闭超时设置 添加了慢速请求超时设置 在慢速请求超时(#523)时,响应408 修复 将HTTP1解码错误报告给客户端。(#512) 在CORS中正确组合多个允许的origins。(#5...

Actix-web 0.7.9 发布内容:

添加

  • 添加了客户端关闭超时设置

  • 添加了慢速请求超时设置

  • 在慢速请求超时(#523)时,响应408

修复

  • 将HTTP1解码错误报告给客户端。(#512)

  • 在CORS中正确组合多个允许的origins。(#517)

  • 如果客户端断开(#511),则不调用Websocket服务器finished()

  • 在没有Content-Length标头的情况下发送,使用100,101,102,204的响应。(#521)

  • no_http2bind_*方法中正确使用flag 。(#519)

Actix-web 0.7.910发布内容:

修复

  • 修复了在正常关机期间panic

Actix-web 0.7.911发布内容:

修复

  • 修复了http / 2的响应204

 Actix-web介绍:

Actix web是Rust的一个简单,实用且极其快速的Web框架。

文档和社区资源

extern crate actix_web;
use actix_web::{http, server, App, Path, Responder};

fn index(info: Path<(u32, String)>) -> impl Responder {
    format!("Hello {}! id:{}", info.1, info.0)
}

fn main() {
    server::new(
        || App::new()
            .route("/{id}/{name}/index.html", http::Method::GET, index))
        .bind("127.0.0.1:8080").unwrap()
        .run();
}

中文网站


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《Actix-web 0.7.9/10/11 齐发,新特性、更新/修复等越发完善》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

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

Programming in Haskell

Programming in Haskell

Graham Hutton / Cambridge University Press / 2007-1-18 / GBP 34.99

Haskell is one of the leading languages for teaching functional programming, enabling students to write simpler and cleaner code, and to learn how to structure and reason about programs. This introduc......一起来看看 《Programming in Haskell》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

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

RGB CMYK 互转工具