Skip to content

Release v0.10.2

Compare
Choose a tag to compare
@github-actions github-actions released this 23 Jul 00:06
ef523d7

ZAP Release v0.10.2

Updates

Hi, it's been a while, and I've almost had no time for zap. However, ...

..., eventually I got to merge the following amazing PRs:

  • #171 from Tesseract22 : provide defaults to unprovided method handlers in
    zap.App

  • the default handlers now return 405 - method not allowed, and also log a
    message

  • #167 from yanis-fourel : file-uploads with missing content-type will default
    to application/octet-stream

  • #164 fwfurtado : added handlers for HEAD requests in Endpoints

  • #161 from unorsk : fixed example in the README

  • support for unhandledError() in zap.App's Context

Using it

In your zig project folder (where build.zig is located), run:

zig fetch --save "git+https://github.com/zigzap/zap#v0.10.2"

Then, in your build.zig's build function, add the following before
b.installArtifact(exe):

    const zap = b.dependency("zap", .{
        .target = target,
        .optimize = optimize,
        .openssl = false, // set to true to enable TLS support
    });
    exe.root_module.addImport("zap", zap.module("zap"));