Logo

index : blog

---

  • summary
  • about
  • tree
  • log
  • branches
<< path: root/public/blog.git/html/tests/main.h blob: b6477ccc1a68f6ef3e6edfe002f94abb4ab4f692 [raw] [clear marker]

        
0
1
2
3HOST :: "127.0.0.1";
4PORT :: 8081;
5
6
7Args :: struct {
8 curl: bool; @"?Curl backend"
9 sock: bool; @"?Socket backend"
10
11 // Socket Backend
12 connect: bool; @"?After connect"
13 send: bool; @"?After send"
14 delay: s32; @"?Delay"
15 cancel: bool; @"?Stop"
16
17 // Curl Backend
18 q: Query_Kind; @"?[Optional] Predefined URLs from Query_Kind enum"
19 cq: string; @"?[Optional] Custom query"
20 os: Method_Kind; @"?One-Shot request with specific http method"
21 stream: float; @"?Streamed request with payload size in MB. If is 0, fallback is 32 bytes"
22 l: int; @"?Send/Recv byte limit"
23 t: Drip_Behavior; @"?Drip behavior. Options: `send`, `recv`, `both`"
24
25 // Both
26 h: bool; @"?Usage and examples"
27}
28
29/** Lowercase because of the arg parser */
30Query_Kind :: enum {
31 ascii;
32 umlaut;
33 heavy;
34 space;
35 verylong;
36}
37
38Method_Kind:: enum {
39 get;
40 head;
41}
42
43Drip_Behavior :: enum {
44 both;
45 send;
46 recv;
47}
48
49
Copyright 2026  E766CB298A6D1E64 | Git-Thing heavily inspired by cgit