Releases: zigzap/zap
release-0.0.18
ZAP Release release-0.0.18
Updates:
Just a little fix in debug-logging. Makes watching the UserPassSessionAuth introduced in the previous release more intuitive.
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.18
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.18.tar.gz",
.hash = "12202080c00d04324721ea58a5120031109165177e89c5612edc74494f2d119b2a78",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.18
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.18.tar.gz",
.hash = "12202080c00d04324721ea58a5120031109165177e89c5612edc74494f2d119b2a78",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
release-0.0.17
ZAP Release release-0.0.17
Update
UserPassSession Authentication!!! See the README for a pointer to the example.
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.17
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.17.tar.gz",
.hash = "12204e63afe2c140de953b584f6b0eca26135c072a74de76ea9ff37ad59fc2031d32",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.17
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.17.tar.gz",
.hash = "12204e63afe2c140de953b584f6b0eca26135c072a74de76ea9ff37ad59fc2031d32",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
release-0.0.16
ZAP Release release-0.0.16
Updates
- websockets
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.16
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.16.tar.gz",
.hash = "12204921426e5cdd4e91be5cd0594efe0aff86409d0db44a31b26e427a6736327c9f",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.16
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.16.tar.gz",
.hash = "12204921426e5cdd4e91be5cd0594efe0aff86409d0db44a31b26e427a6736327c9f",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
release-0.0.15
ZAP Release release-0.0.15
Updates
- cookies, similar to HTTP params in 0.0.14
Using it
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.15
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.15.tar.gz",
.hash = "122023067e213715ef87bee4d9ad9707fda028e2f9c7fbe30c28d635acdf6490a651",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.15
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.15.tar.gz",
.hash = "122023067e213715ef87bee4d9ad9707fda028e2f9c7fbe30c28d635acdf6490a651",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
release-0.0.14: Mega update! SimpleHttpRequest got Parameters!
ZAP Release release-0.0.14
Updates
Mega update! SimpleHttpRequest
got Parameters!
parseBody()
: parse form paramsparseQuery()
: parse query paramsgetParamCount()
: returns number of parsed paramsparametersToOwnedStrList()
: get params as kv pairs of stringsparametersToOwnedList()
: get params as kv listgetParamStr()
: get parameter by name
How to use
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.14
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.14.tar.gz",
.hash = "1220adff3eec2ad33ff97d6fe6ad23d796cc52a7d0e290f3b909847e09362df3e242",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.14
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.14.tar.gz",
.hash = "1220adff3eec2ad33ff97d6fe6ad23d796cc52a7d0e290f3b909847e09362df3e242",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
release-0.0.13: Fixed Auth Ep cb ptr, Basic Auth += Authorization
ZAP Release release-0.0.13
Update and Fixes
- Auth Endpoint now calls back with the correct *SimpleEndpoint so that callees' @fieldParentPtr can be used
- Basic Authenticator now allows Authorization headers in addition to Authentication headers
Usage
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.13
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.13.tar.gz",
.hash = "1220c4c26d3ed0a6e27ff15d6165cfc648f6209b381e0e6ac06c02f68cf54a4c9fe4",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.13
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.13.tar.gz",
.hash = "1220c4c26d3ed0a6e27ff15d6165cfc648f6209b381e0e6ac06c02f68cf54a4c9fe4",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
testing new zig
ZAP Release release-0.0.12-test
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.12-test
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.12-test.tar.gz",
.hash = "12201a5586b87c689c5c9f00075e84affc5207b0e2596efab0355025031da148d072",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.12-test
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.12-test.tar.gz",
.hash = "12201a5586b87c689c5c9f00075e84affc5207b0e2596efab0355025031da148d072",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
# ZAP Release release-0.0.11-localhost (until zig pkg fetch from GH is fixed)
ZAP Release release-0.0.11-localhost
Latest zig-master has problems handling the recent GitHub
redirects to codeload.github.com
. My work-around for this is as follows:
Change your build.zig.zon
zap dependency to localhost:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.11-localhost
.zap = .{
.url = "http://127.0.0.1:8000/release-0.0.11-localhost.tar.gz",
.hash = "122072531b7983335abffa3f9e66cc7f3153e4a697d3c332ed3811495eb1c75ab3f0",
}
}
}
$ # get dependency required by zap
$ wget https://github.com/zigzap/facil.io/archive/refs/tags/zap-0.0.7.tar.gz
$ # get zap itself
$ wget https://github.com/zigzap/zap/archive/refs/tags/release-0.0.11-localhost.tar.gz
$ # start a http server on port 8000
$ python -m http.server
This hosts the downloaded dependencies locally on port 8000. After the first
zig build
, you can stop the python http server with
CTRL+C.
Generic
To use in your own projects, put this dependency into your build.zig.zon
:
// zap release-0.0.11-localhost
.zap = .{
.url = "http://127.0.0.1:8000/release-0.0.11-localhost.tar.gz",
.hash = "122072531b7983335abffa3f9e66cc7f3153e4a697d3c332ed3811495eb1c75ab3f0",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap release-0.0.11-localhost
.zap = .{
.url = "http://127.0.0.1:8000/release-0.0.11-localhost.tar.gz",
.hash = "122072531b7983335abffa3f9e66cc7f3153e4a697d3c332ed3811495eb1c75ab3f0",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
Release 0.0.11
ZAP Release 0.0.11
To use in your own projects, put this dependency into your build.zig.zon
:
// zap 0.0.11
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.11.tar.gz",
.hash = "12201e0b2a2a7b034f0dd70326aeb9e23630f802be2d07d2ccede7c9629db0f71737",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap 0.0.11
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.11.tar.gz",
.hash = "12201e0b2a2a7b034f0dd70326aeb9e23630f802be2d07d2ccede7c9629db0f71737",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));
release-0.0.10
To use in your own projects, put this dependency into your build.zig.zon
:
// zap 0.0.10
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.10.tar.gz",
.hash = "122098517b9638fbb6e6935b6c298a4877978c78ddc595c94a887cd581ef301f00e2",
}
Here is a complete build.zig.zon
example:
.{
.name = "My example project",
.version = "0.0.1",
.dependencies = .{
// zap 0.0.10
.zap = .{
.url = "https://github.com/zigzap/zap/archive/refs/tags/release-0.0.10.tar.gz",
.hash = "122098517b9638fbb6e6935b6c298a4877978c78ddc595c94a887cd581ef301f00e2",
}
}
}
Then, in your build.zig
's build
function, add the following before
exe.install()
:
const zap = b.dependency("zap", .{
.target = target,
.optimize = optimize,
});
exe.addModule("zap", zap.module("zap"));
exe.linkLibrary(zap.artifact("facil.io"));