文件名称:http:Zig的HTTP核心类型
文件大小:25KB
文件格式:ZIP
更新时间:2024-06-05 17:19:02
http zig Zig
HTTP 受Rust 启发的Zig的HTTP核心类型。 用法 创建一个HTTP请求 const Request = @import ( "http" ).Request; const std = @import ( "std" ); var request = try Request. builder (std.testing.allocator) . get ( "https://ziglang.org/" ) . header ( "GOTTA-GO" , "FAST" ) . body ( "" ); defer request. deinit (); 创建一个HTTP响应 const Response = @import ( "http" ).Request; const StatusCode = @import ( "http" ).StatusC
【文件预览】:
http-master
----build.zig(420B)
----.gitattributes(12B)
----LICENSE.txt(678B)
----src()
--------methods.zig(5KB)
--------status.zig(2KB)
--------response.zig(4KB)
--------test.zig(280B)
--------versions.zig(2KB)
--------main.zig(1014B)
--------uri()
--------request.zig(10KB)
--------headers()
----.travis.yml(167B)
----README.md(6KB)
----.gitignore(35B)