Skip to content

Commit 92db14c

Browse files
committed
chore: bump to 0.15.2
1 parent 4f3728a commit 92db14c

File tree

11 files changed

+17
-28
lines changed

11 files changed

+17
-28
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ jobs:
2727
- name: Run tests
2828
run: |
2929
make test
30-
- uses: actions/setup-go@v6
31-
with:
32-
go-version: 'stable'
33-
- name: Run examples
34-
run: |
35-
./.github/server.sh
36-
make run
3730
- name: Install deps
3831
if: matrix.os == 'ubuntu-latest'
3932
run: |
@@ -66,10 +59,6 @@ jobs:
6659
- name: Run tests
6760
run: |
6861
make test
69-
- name: Run examples
70-
run: |
71-
./.github/server.sh
72-
make run
7362
- name: Install deps
7463
if: matrix.os == 'ubuntu-latest'
7564
run: |

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
zig 0.15.1
1+
zig 0.15.2

README.org

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#+TITLE: zig-curl
22
#+DATE: 2023-09-16T23:16:15+0800
3-
#+LASTMOD: 2025-10-05T21:21:30+0800
3+
#+LASTMOD: 2025-10-17T09:10:36+0800
44
#+OPTIONS: toc:nil num:nil
55
#+STARTUP: content
66

7-
[[https://img.shields.io/badge/zig%20version-0.15.1-blue.svg]]
7+
[[https://img.shields.io/badge/zig%20version-0.15.2-blue.svg]]
88
[[https://github.com/jiacai2050/zig-curl/actions/workflows/CI.yml][https://github.com/jiacai2050/zig-curl/actions/workflows/CI.yml/badge.svg]]
99
[[https://ci.codeberg.org/repos/13257][https://ci.codeberg.org/api/badges/13257/status.svg]]
1010

@@ -29,7 +29,7 @@ cat examples/basic.zig
2929
const std = @import("std");
3030
const curl = @import("curl");
3131

32-
const URL = "https://httpbin.liujiacai.net/anything";
32+
const URL = "https://edgebin.liujiacai.net/anything";
3333

3434
pub fn main() !void {
3535
var gpa: std.heap.DebugAllocator(.{}) = .init;

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.name = .curl,
33
.fingerprint = 0x3e01b4de1538b3f,
44
.version = "0.3.2",
5-
.minimum_zig_version = "0.15.1",
5+
.minimum_zig_version = "0.15.2",
66
.paths = .{
77
"src",
88
"libs",

examples/advanced.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ fn putWithCustomHeader(allocator: Allocator, easy: Easy) !void {
3535
};
3636
defer headers.deinit();
3737

38-
try easy.setUrl("https://httpbin.liujiacai.net/anything/zig-curl");
38+
try easy.setUrl("https://edgebin.liujiacai.net/anything/zig-curl");
3939
try easy.setHeaders(headers);
4040
try easy.setMethod(.PUT);
4141
try easy.setVerbose(true);
@@ -71,7 +71,7 @@ fn putWithCustomHeader(allocator: Allocator, easy: Easy) !void {
7171
.age = 15,
7272
},
7373
.method = "PUT",
74-
.url = "https://httpbin.liujiacai.net/anything/zig-curl",
74+
.url = "https://edgebin.liujiacai.net/anything/zig-curl",
7575
},
7676
);
7777

@@ -97,7 +97,7 @@ fn postMultiPart(allocator: Allocator, easy: Easy) !void {
9797
try multi_part.addPart("readme", .{ .file = "examples/test.txt" });
9898
defer multi_part.deinit();
9999

100-
try easy.setUrl("https://httpbin.liujiacai.net/anything/mp");
100+
try easy.setUrl("https://edgebin.liujiacai.net/anything/mp");
101101
try easy.setMethod(.PUT);
102102
try easy.setMultiPart(multi_part);
103103
try easy.setVerbose(true);

examples/basic.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const std = @import("std");
22
const curl = @import("curl");
33

4-
const URL = "https://httpbin.liujiacai.net/anything";
4+
const URL = "https://edgebin.liujiacai.net/anything";
55

66
pub fn main() !void {
77
var gpa: std.heap.DebugAllocator(.{}) = .init;

examples/header.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn iterateHeaders(easy: Easy) !void {
77
// Reset old options, e.g. headers.
88
easy.reset();
99

10-
const resp = try easy.fetch("https://httpbin.liujiacai.net/response-headers?X-Foo=1&X-Foo=2&X-Foo=3", .{});
10+
const resp = try easy.fetch("https://edgebin.liujiacai.net/response-headers?X-Foo=1&X-Foo=2&X-Foo=3", .{});
1111

1212
std.debug.print("Iterating all headers...\n", .{});
1313
{
@@ -31,7 +31,7 @@ fn iterateHeaders(easy: Easy) !void {
3131

3232
fn iterateRedirectedHeaders(easy: Easy) !void {
3333
try easy.setFollowLocation(true);
34-
const resp = try easy.fetch("https://httpbin.liujiacai.net/redirect/2", .{});
34+
const resp = try easy.fetch("https://edgebin.liujiacai.net/redirect/2", .{});
3535

3636
const redirects = try resp.getRedirectCount();
3737
try std.testing.expectEqual(redirects, 2);

examples/multi.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ pub fn main() !void {
3333
var wtr2 = std.Io.Writer.Allocating.init(allocator);
3434
defer wtr2.deinit();
3535

36-
try multi.addHandle(try newEasy(&wtr1.writer, "http://httpbin.liujiacai.net/headers"));
37-
try multi.addHandle(try newEasy(&wtr2.writer, "http://httpbin.liujiacai.net/ip"));
36+
try multi.addHandle(try newEasy(&wtr1.writer, "http://edgebin.liujiacai.net/headers"));
37+
try multi.addHandle(try newEasy(&wtr2.writer, "http://edgebin.liujiacai.net/ip"));
3838

3939
var keep_running = true;
4040
while (keep_running) {

examples/post.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub fn main() !void {
2020
var writer = std.Io.Writer.Allocating.init(allocator);
2121
defer writer.deinit();
2222
const resp = try easy.fetch(
23-
"https://httpbin.liujiacai.net/anything",
23+
"https://edgebin.liujiacai.net/anything",
2424
.{
2525
.method = .POST,
2626
.body = payload,

examples/upload.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const println = @import("util.zig").println;
33
const curl = @import("curl");
44
const Allocator = std.mem.Allocator;
55

6-
const URL = "https://httpbin.liujiacai.net/anything";
6+
const URL = "https://edgebin.liujiacai.net/anything";
77

88
pub fn main() !void {
99
println("Upload demo");

0 commit comments

Comments
 (0)