nwaku/nimcache/release/quicksim/@m..@s..@s..@svendor@snim-http-utils@shttputils.nim.c

1643 lines
82 KiB
C

/* Generated by Nim Compiler v1.2.6 */
/* (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, amd64, gcc */
/* Command for C compiler:
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/certs -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v1/node -o nimcache/release/quicksim/@m..@s..@s..@svendor@snim-http-utils@shttputils.nim.c.o nimcache/release/quicksim/@m..@s..@s..@svendor@snim-http-utils@shttputils.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <string.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw;
typedef struct tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg;
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
typedef struct tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ;
typedef struct tySequence__65L3VWzmyOUTt9b3vxWE6OA tySequence__65L3VWzmyOUTt9b3vxWE6OA;
typedef struct tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ;
typedef struct RootObj RootObj;
typedef struct tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw;
typedef NU8 tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw;
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {NI size;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
NCSTRING name;
TNimType* nextType;
NI instances;
NI sizes;
};
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q;
typedef NU8 tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw;
struct tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ {NI s;
NI e;
};
struct tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q version;
NI code;
tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw status;
tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ rsn;
NI state;
tySequence__65L3VWzmyOUTt9b3vxWE6OA* hdrs;
NI length;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ {tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ name;
tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ value;
};
typedef NI tyArray__AM6k89cr9c1T2mNMufYfM0Rg[256];
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
struct RootObj {TNimType* m_type;};
typedef NU8 tyEnum_Month__JS0JuFvCBbC2GL3xXBnPQw;
typedef NU8 tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg;
struct tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw { RootObj Sup;NI nanosecond;
NI second;
NI minute;
NI hour;
NI monthday;
tyEnum_Month__JS0JuFvCBbC2GL3xXBnPQw month;
NI year;
tyEnum_WeekDay__SVfemTA9aCOyua2TJYa6yBg weekday;
NI yearday;
NIM_BOOL isDst;
tyObject_TimezonecolonObjectType___F8OvqlxXyGXRSiK9c1fCDVw* timezone;
NI utcOffset;
};
struct tySequence__65L3VWzmyOUTt9b3vxWE6OA { TGenericSeq Sup; tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ data[SEQ_DECL_SIZE];};struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, format__tXv9boeHI0qhuMnnY6UCXLw)(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* dt);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
static N_NIMCALL(void, Marker_tySequence__65L3VWzmyOUTt9b3vxWE6OA)(void* p, NI op);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
N_LIB_PRIVATE N_NIMCALL(void, parseResponse__zWqyQSQoyNpqRjEYYm1hGA)(NU8* data, NI dataLen_0, NIM_BOOL makeCopy, tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg* Result);
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(tySequence__65L3VWzmyOUTt9b3vxWE6OA*, newSeq__mZp2vj0R9bRdRlMERP9bf7oA)(NI len);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, newSeq__DpCWN7DIBuAjgoeQ9c29blYQ)(NI len);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q, processVersion__zLHqjt7R2Ws6dgH9bVSJGUA)(NU8* data, NI dataLen_0, NI s, NI e);
N_LIB_PRIVATE N_NIMCALL(NI, processCode__gTh2789c9cM9bMfVAVzUzTRYw)(NU8* data, NI dataLen_0, NI s, NI e);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__KYOevQIPdg9c12wmzDXII9aA)(NU8* data, NI dataLen_0, NI start, NI stop);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NIMCALL(NI, compare__iOrQLQ06hcCH5mtsi9a9bTSQ)(NU8* data, NI dataLen_0, tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ* header, NimStringDesc* key);
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, nsuToLowerAsciiChar)(NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, X5BX5D___vUOlC4xAfm81gfO9bhIpvAw)(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg* reqresp, NimStringDesc* header);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuStrip)(NimStringDesc* s, NIM_BOOL leading, NIM_BOOL trailing, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars);
N_LIB_PRIVATE TNimType NTI__bMq0sooE6Gop1f7wiKaIpw_;
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_5, "GET", 3);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_6, "POST", 4);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_7, "HEAD", 4);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_8, "PUT", 3);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_9, "DELETE", 6);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_10, "TRACE", 5);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_11, "OPTIONS", 7);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_12, "CONNECT", 7);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_13, "PATCH", 5);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_14, "ERROR", 5);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_15, "HTTP/0.9", 8);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_16, "HTTP/1.0", 8);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_17, "HTTP/1.1", 8);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_18, "HTTP/2.0", 8);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_19, " GMT", 4);
N_LIB_PRIVATE TNimType NTI__yWb7T032g3NouYFbj9ctMsg_;
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
N_LIB_PRIVATE TNimType NTI__rGcR6EJZgQyaEAOs3tK02Q_;
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
N_LIB_PRIVATE TNimType NTI__jDg5OvWC3rxWlE9aA2GJFnw_;
N_LIB_PRIVATE TNimType NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_;
N_LIB_PRIVATE TNimType NTI__RG2q8UsJLeu5juOi9aonSwQ_;
N_LIB_PRIVATE TNimType NTI__65L3VWzmyOUTt9b3vxWE6OA_;
N_LIB_PRIVATE NIM_CONST tyArray__AM6k89cr9c1T2mNMufYfM0Rg responseSM__FoHuog76BUh8o9aR9bLqpRUg = {((NI) 192),
((NI) 129),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 192),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 193),
((NI) 1),
((NI) 1),
((NI) 193),
((NI) 193),
((NI) 193),
((NI) 193),
((NI) 193),
((NI) 193),
((NI) 1),
((NI) 1),
((NI) 130),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 194),
((NI) 194),
((NI) 131),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 194),
((NI) 194),
((NI) 3),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 132),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 133),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 136),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 194),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 195),
((NI) 134),
((NI) 134),
((NI) 134),
((NI) 134),
((NI) 134),
((NI) 195),
((NI) 195),
((NI) 134),
((NI) 134),
((NI) 134),
((NI) 134),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 195),
((NI) 6),
((NI) 6),
((NI) 6),
((NI) 6),
((NI) 6),
((NI) 135),
((NI) 195),
((NI) 6),
((NI) 6),
((NI) 6),
((NI) 6),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 136),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 195),
((NI) 138),
((NI) 138),
((NI) 138),
((NI) 138),
((NI) 195),
((NI) 143),
((NI) 195),
((NI) 195),
((NI) 195),
((NI) 138),
((NI) 196),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 196),
((NI) 138),
((NI) 138),
((NI) 138),
((NI) 138),
((NI) 196),
((NI) 143),
((NI) 196),
((NI) 196),
((NI) 196),
((NI) 138),
((NI) 196),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 196),
((NI) 10),
((NI) 10),
((NI) 10),
((NI) 10),
((NI) 196),
((NI) 196),
((NI) 196),
((NI) 139),
((NI) 196),
((NI) 10),
((NI) 196),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 142),
((NI) 197),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 140),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 197),
((NI) 142),
((NI) 197),
((NI) 141),
((NI) 141),
((NI) 141),
((NI) 12),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 13),
((NI) 13),
((NI) 13),
((NI) 13),
((NI) 13),
((NI) 13),
((NI) 142),
((NI) 197),
((NI) 13),
((NI) 13),
((NI) 13),
((NI) 13),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 199),
((NI) 199),
((NI) 199),
((NI) 199),
((NI) 199),
((NI) 199),
((NI) 199),
((NI) 137),
((NI) 199),
((NI) 199),
((NI) 199),
((NI) 199),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 200),
((NI) 200),
((NI) 200),
((NI) 200),
((NI) 200),
((NI) 200),
((NI) 200),
((NI) 159),
((NI) 200),
((NI) 200),
((NI) 200),
((NI) 200),
((NI) 207),
((NI) 207),
((NI) 207),
((NI) 207)}
;
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_73, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
"vendor/Nim/lib/system/iterators.nim(189, 11) `len(a) == L` the l"
"ength of the seq changed while iterating over it", 175);
STRING_LITERAL(TM__Qz4zeDE6R7JMM8n5EHTKIg_74, "Content-Length", 14);
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__Qz4zeDE6R7JMM8n5EHTKIg_75 = {
0x00, 0x3e, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
N_LIB_PRIVATE NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw NUM__CfzgAlF9bH4Tsv9aIV5HeZUA = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
extern TNimType* nimTypeRoot;
#line 1115 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___E4MPPFmHyc9a4S9bgONRyoFQ)(tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw m) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 1116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
switch (m) {
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 0):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_5)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 1):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_6)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 2):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_7)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 3):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_8)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 4):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_9)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 5):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_10)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 6):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_11)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 7):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_12)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 8):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_13)); }
break;
case ((tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw) 9):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_14)); }
break;
}
return result;}
#line 1060 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___Ty0M29aYiSZjl6mBI8osnmQ)(tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q version) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 1061 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1062 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
switch (version) {
case ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 0):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_15)); }
break;
case ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 2):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_16)); }
break;
case ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 1):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_17)); }
break;
case ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 3):
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_18)); }
break;
default:
{ result = copyString(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_16)); }
break;
}
return result;}
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimCopyMem(dest, source, size);
}
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
{
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).Sup.len += (*src).Sup.len; }
LA3_: ;
}
#line 1104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, httpDate__3W9aPHpX47acAT9c9bxlu63dg)(tyObject_DateTime__d9cK9cyKZPJJxFXUmx8dSpPw* datetime) { NimStringDesc* result; NimStringDesc* res; result = (NimStringDesc*)0;
#line 1105 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res = format__tXv9boeHI0qhuMnnY6UCXLw(datetime);
#line 1108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res = resizeString(res, 4);appendString(res, ((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_19)); result = copyString(res); return result;}
static N_NIMCALL(void, Marker_tySequence__65L3VWzmyOUTt9b3vxWE6OA)(void* p, NI op) {
tySequence__65L3VWzmyOUTt9b3vxWE6OA* a;
NI T1_; a = (tySequence__65L3VWzmyOUTt9b3vxWE6OA*)p;
T1_ = (NI)0;}
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q, processVersion__zLHqjt7R2Ws6dgH9bVSJGUA)(NU8* data, NI dataLen_0, NI s, NI e) { tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q result; NI length; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_31; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_32;{ result = (tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q)0;
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(e, s, &TM__Qz4zeDE6R7JMM8n5EHTKIg_31)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_31), ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_32)) { raiseOverflow(); }; length = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_32);
#line 384 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 384 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(length == ((NI) 8))) goto LA3_;
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NIM_BOOL T7_; NIM_BOOL T8_; NIM_BOOL T9_; NIM_BOOL T10_; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_33; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_34; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_35; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_36;
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T7_ = (NIM_BOOL)0;
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T8_ = (NIM_BOOL)0;
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T9_ = (NIM_BOOL)0;
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T10_ = (NIM_BOOL)0;
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(s) >= (NU)(dataLen_0)){ raiseIndexError2(s,dataLen_0-1); } T10_ = ((NU8)(((NIM_CHAR) (data[s]))) == (NU8)(72)); if (!(T10_)) goto LA11_;
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_33)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_33)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_33),dataLen_0-1); } T10_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_33)]))) == (NU8)(84)); LA11_: ;
T9_ = T10_; if (!(T9_)) goto LA12_;
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 2), &TM__Qz4zeDE6R7JMM8n5EHTKIg_34)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_34)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_34),dataLen_0-1); } T9_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_34)]))) == (NU8)(84)); LA12_: ;
T8_ = T9_; if (!(T8_)) goto LA13_;
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 3), &TM__Qz4zeDE6R7JMM8n5EHTKIg_35)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_35)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_35),dataLen_0-1); } T8_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_35)]))) == (NU8)(80)); LA13_: ;
T7_ = T8_; if (!(T7_)) goto LA14_;
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 4), &TM__Qz4zeDE6R7JMM8n5EHTKIg_36)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_36)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_36),dataLen_0-1); } T7_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_36)]))) == (NU8)(47)); LA14_: ;
if (!T7_) goto LA15_;
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NIM_BOOL T19_; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_37; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_38;
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T19_ = (NIM_BOOL)0;
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 5), &TM__Qz4zeDE6R7JMM8n5EHTKIg_37)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_37)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_37),dataLen_0-1); } T19_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_37)]))) == (NU8)(49)); if (!(T19_)) goto LA20_;
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 6), &TM__Qz4zeDE6R7JMM8n5EHTKIg_38)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_38)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_38),dataLen_0-1); } T19_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_38)]))) == (NU8)(46)); LA20_: ;
if (!T19_) goto LA21_;
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_39;
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 7), &TM__Qz4zeDE6R7JMM8n5EHTKIg_39)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_39)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_39),dataLen_0-1); } if (!((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_39)]))) == (NU8)(48))) goto LA25_;
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 2); goto BeforeRet_;
}
goto LA23_;
LA25_: ;
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_40;
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 7), &TM__Qz4zeDE6R7JMM8n5EHTKIg_40)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_40)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_40),dataLen_0-1); } if (!((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_40)]))) == (NU8)(49))) goto LA28_;
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 392 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 1); goto BeforeRet_;
}
goto LA23_;
LA28_: ;
LA23_: ;
}
goto LA17_;
LA21_: ;
{ NIM_BOOL T31_; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_41; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_42;
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T31_ = (NIM_BOOL)0;
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 5), &TM__Qz4zeDE6R7JMM8n5EHTKIg_41)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_41)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_41),dataLen_0-1); } T31_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_41)]))) == (NU8)(48)); if (!(T31_)) goto LA32_;
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 6), &TM__Qz4zeDE6R7JMM8n5EHTKIg_42)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_42)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_42),dataLen_0-1); } T31_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_42)]))) == (NU8)(46)); LA32_: ;
if (!T31_) goto LA33_;
#line 394 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_43;
#line 394 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 394 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 7), &TM__Qz4zeDE6R7JMM8n5EHTKIg_43)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_43)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_43),dataLen_0-1); } if (!((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_43)]))) == (NU8)(57))) goto LA37_;
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 0); goto BeforeRet_;
}
LA37_: ;
}
goto LA17_;
LA33_: ;
{ NIM_BOOL T40_; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_44; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_45;
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T40_ = (NIM_BOOL)0;
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 5), &TM__Qz4zeDE6R7JMM8n5EHTKIg_44)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_44)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_44),dataLen_0-1); } T40_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_44)]))) == (NU8)(50)); if (!(T40_)) goto LA41_;
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 6), &TM__Qz4zeDE6R7JMM8n5EHTKIg_45)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_45)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_45),dataLen_0-1); } T40_ = ((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_45)]))) == (NU8)(46)); LA41_: ;
if (!T40_) goto LA42_;
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_46;
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 7), &TM__Qz4zeDE6R7JMM8n5EHTKIg_46)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_46)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_46),dataLen_0-1); } if (!((NU8)(((NIM_CHAR) (data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_46)]))) == (NU8)(48))) goto LA46_;
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 3); goto BeforeRet_;
}
LA46_: ;
}
goto LA17_;
LA42_: ;
LA17_: ;
}
LA15_: ;
}
LA3_: ;
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 4); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, processCode__gTh2789c9cM9bMfVAVzUzTRYw)(NU8* data, NI dataLen_0, NI s, NI e) { NI result; NI res; NI length; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_48; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_49; result = (NI)0;
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res = ((NI) -1);
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(e, s, &TM__Qz4zeDE6R7JMM8n5EHTKIg_48)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_48), ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_49)) { raiseOverflow(); }; length = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_49);
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_50; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_51; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_52; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_53; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_54; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_55; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_56; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_57; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_58;
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(length == ((NI) 3))) goto LA3_;
#line 407 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 407 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 405 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 405 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 405 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 405 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(s) >= (NU)(dataLen_0)){ raiseIndexError2(s,dataLen_0-1); } if (nimSubInt(data[s], ((NI) 48), &TM__Qz4zeDE6R7JMM8n5EHTKIg_50)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_50), ((NI) 100), &TM__Qz4zeDE6R7JMM8n5EHTKIg_51)) { raiseOverflow(); };
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 406 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_52)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_52)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_52),dataLen_0-1); } if (nimSubInt(data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_52)], ((NI) 48), &TM__Qz4zeDE6R7JMM8n5EHTKIg_53)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_53), ((NI) 10), &TM__Qz4zeDE6R7JMM8n5EHTKIg_54)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_51), (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_54), &TM__Qz4zeDE6R7JMM8n5EHTKIg_55)) { raiseOverflow(); };
#line 407 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 407 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(s, ((NI) 2), &TM__Qz4zeDE6R7JMM8n5EHTKIg_56)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_56)) >= (NU)(dataLen_0)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_56),dataLen_0-1); } if (nimAddInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_55), data[(NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_56)], &TM__Qz4zeDE6R7JMM8n5EHTKIg_57)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_57), ((NI) 48), &TM__Qz4zeDE6R7JMM8n5EHTKIg_58)) { raiseOverflow(); }; res = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_58); }
LA3_: ;
result = res; return result;}
#line 609 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(void, parseResponse__zWqyQSQoyNpqRjEYYm1hGA)(NU8* data, NI dataLen_0, NIM_BOOL makeCopy, tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg* Result) { NI index; NI state; NI start; NI finish; tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ hdr; tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg res;{ chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).data, NIM_NIL); (*Result).version = 0; (*Result).code = 0; (*Result).status = 0; (*Result).rsn.s = 0; (*Result).rsn.e = 0; (*Result).state = 0; unsureAsgnRef((void**)&(*Result).hdrs, NIM_NIL); (*Result).length = 0;
#line 611 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 618 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
index = ((NI) 0);
#line 619 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
state = ((NI) 0);
#line 620 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = ((NI) -1);
#line 621 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
finish = ((NI) 0); nimZeroMem((void*)(&hdr), sizeof(tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ)); nimZeroMem((void*)(&res), sizeof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg));
#line 624 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
chckNil((void*)(&res)); nimZeroMem((void*)(&res), sizeof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg)); res.status = ((tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw) 1); res.version = ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 4); res.code = ((NI) -1);
#line 628 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 628 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.hdrs = newSeq__mZp2vj0R9bRdRlMERP9bf7oA(((NI) 0));
#line 631 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 631 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 631 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(dataLen_0 == ((NI) 0))) goto LA3_;
#line 632 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 632 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
genericAssign((void*)Result, (void*)(&res), (&NTI__yWb7T032g3NouYFbj9ctMsg_)); goto BeforeRet_;
}
LA3_: ;
#line 634 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ if (!makeCopy) goto LA7_;
#line 636 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 636 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((dataLen_0) < ((NI) 0) || (dataLen_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(dataLen_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 636 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.data = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) (dataLen_0)));
#line 637 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(((NI) 0)) >= (NU)(res.data ? res.data->Sup.len : 0)){ raiseIndexError2(((NI) 0),(res.data ? res.data->Sup.len : 0)-1); } if ((NU)(((NI) 0)) >= (NU)(dataLen_0)){ raiseIndexError2(((NI) 0),dataLen_0-1); }
#line 637 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((dataLen_0) < ((NI) 0) || (dataLen_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(dataLen_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 637 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&res.data->data[((NI) 0)]))), ((void*) ((&data[((NI) 0)]))), ((NI) (dataLen_0)));
}
LA7_: ;
{
#line 639 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
while (1) { NI ps; NI codeX60gensym38010305_; NI newstateX60gensym38010306_; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_29; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_63;
#line 639 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 639 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(index < dataLen_0)) goto LA10;
#line 640 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 0);
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(index) >= (NU)(dataLen_0)){ raiseIndexError2(index,dataLen_0-1); } switch (((NU8)(((NIM_CHAR) (data[index]))))) {
case 65 ... 90:
case 97 ... 122:
{
#line 283 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 1); }
break;
case 48 ... 57:
{
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 2); }
break;
case 33:
case 35 ... 39:
case 42 ... 43:
case 45:
case 95:
case 126:
{
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 3); }
break;
case 94:
case 96:
case 124:
{
#line 289 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 4); }
break;
case 40 ... 41:
case 44:
case 59:
case 61:
case 63 ... 64:
case 91:
case 93:
{
#line 291 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 5); }
break;
case 13:
{
#line 293 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 6); }
break;
case 10:
{
#line 295 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 7); }
break;
case 58:
{
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 8); }
break;
case 47:
{
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 9); }
break;
case 46:
{
#line 301 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 10); }
break;
case 9:
case 32:
{
#line 303 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 11); }
break;
default:
{
#line 305 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
codeX60gensym38010305_ = ((NI) 0); }
break;
}
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt((NI)((NU64)(state) << (NU64)(((NI) 4))), codeX60gensym38010305_, &TM__Qz4zeDE6R7JMM8n5EHTKIg_29)) { raiseOverflow(); }; if ((NU)((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_29)) > (NU)(255)){ raiseIndexError2((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_29), 255); } newstateX60gensym38010306_ = responseSM__FoHuog76BUh8o9aR9bLqpRUg[((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_29))- 0];
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
state = (NI)(newstateX60gensym38010306_ & ((NI) 15)); ps = newstateX60gensym38010306_;
#line 641 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.state = ps;
#line 642 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
switch (ps) {
case ((NI) 129):
{
#line 644 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = index; }
break;
case ((NI) 130):
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_30; tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q m;
#line 646 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 646 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(start == ((NI) -1))) goto LA27_;
#line 647 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
LA27_: ;
#line 648 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 648 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(index, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_30)) { raiseOverflow(); }; finish = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_30);
#line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 649 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
m = processVersion__zLHqjt7R2Ws6dgH9bVSJGUA(data, dataLen_0, start, finish);
#line 650 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 650 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(m == ((tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q) 4))) goto LA31_;
#line 651 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
LA31_: ;
#line 652 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.version = m;
#line 653 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = ((NI) -1); }
break;
case ((NI) 131):
{
#line 655 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = index; }
break;
case ((NI) 132):
case ((NI) 133):
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_47; NI m_2;
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(start == ((NI) -1))) goto LA37_;
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
LA37_: ;
#line 659 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 659 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(index, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_47)) { raiseOverflow(); }; finish = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_47);
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 660 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
m_2 = processCode__gTh2789c9cM9bMfVAVzUzTRYw(data, dataLen_0, start, finish);
#line 661 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 661 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(m_2 == ((NI) -1))) goto LA41_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
LA41_: ;
#line 663 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.code = m_2;
#line 664 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ T47_;
#line 664 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(ps == ((NI) 132))) goto LA45_;
#line 665 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
nimZeroMem((void*)(&T47_), sizeof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ)); T47_.s = ((NI) -1); T47_.e = ((NI) -1); res.rsn = T47_; }
LA45_: ;
#line 666 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = ((NI) -1); }
break;
case ((NI) 134):
{
#line 668 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = index; }
break;
case ((NI) 135):
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_59; tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ T54_;
#line 670 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 670 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(start == ((NI) -1))) goto LA52_;
#line 671 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
LA52_: ;
#line 672 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 672 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(index, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_59)) { raiseOverflow(); }; finish = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_59);
#line 673 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
nimZeroMem((void*)(&T54_), sizeof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ)); T54_.s = start; T54_.e = finish; res.rsn = T54_;
#line 674 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = ((NI) -1); }
break;
case ((NI) 136):
case ((NI) 137):
case ((NI) 140):
case ((NI) 143):
{ }
break;
case ((NI) 138):
{
#line 678 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = index; }
break;
case ((NI) 139):
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_60; tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ T62_;
#line 680 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 680 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(start == ((NI) -1))) goto LA60_;
#line 681 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
LA60_: ;
#line 682 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 682 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(index, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_60)) { raiseOverflow(); }; finish = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_60);
#line 683 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
nimZeroMem((void*)(&T62_), sizeof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ)); T62_.s = start; T62_.e = finish; hdr.name = T62_;
#line 684 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = ((NI) -1); }
break;
case ((NI) 141):
{
#line 686 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = index; }
break;
case ((NI) 142):
{ NI T72_;
#line 688 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ T69_;
#line 688 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(start == ((NI) -1))) goto LA67_;
#line 690 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
nimZeroMem((void*)(&T69_), sizeof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ)); T69_.s = ((NI) -1); T69_.e = ((NI) -1); hdr.value = T69_; }
goto LA65_;
LA67_: ;
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_61; tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ T71_;
#line 692 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 692 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(index, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_61)) { raiseOverflow(); }; finish = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_61);
#line 693 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
nimZeroMem((void*)(&T71_), sizeof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ)); T71_.s = start; T71_.e = finish; hdr.value = T71_; }
LA65_: ;
#line 694 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.hdrs = (tySequence__65L3VWzmyOUTt9b3vxWE6OA*) incrSeqV3((TGenericSeq*)(res.hdrs), (&NTI__65L3VWzmyOUTt9b3vxWE6OA_)); T72_ = res.hdrs->Sup.len++; res.hdrs->data[T72_] = hdr;
#line 695 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
start = ((NI) -1); }
break;
case ((NI) 159):
{ NI TM__Qz4zeDE6R7JMM8n5EHTKIg_62;
#line 697 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 697 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(index, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_62)) { raiseOverflow(); }; res.length = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_62);
#line 698 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.status = ((tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw) 0);
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
break;
case ((NI) 192) ... ((NI) 207):
{
#line 702 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
break;
case ((NI) 0) ... ((NI) 15):
{ }
break;
default:
{
#line 708 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA9;
}
break;
}
#line 709 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(index, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_63)) { raiseOverflow(); }; index = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_63); } LA10: ;
} LA9: ;
genericAssign((void*)Result, (void*)(&res), (&NTI__yWb7T032g3NouYFbj9ctMsg_)); }BeforeRet_: ;
}
#line 712 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(void, parseResponse__DzHYFP3PNNJB6tMvaA1zhw)(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data, tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg* Result) { tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg res;
#line 713 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
nimZeroMem((void*)(&res), sizeof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg));
#line 722 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 722 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
parseResponse__zWqyQSQoyNpqRjEYYm1hGA(data->data, (data ? data->Sup.len : 0), NIM_FALSE, (&res));
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res.data = ((tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) (data)); genericAssign((void*)Result, (void*)(&res), (&NTI__yWb7T032g3NouYFbj9ctMsg_));}
#line 889 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__KYOevQIPdg9c12wmzDXII9aA)(NU8* data, NI dataLen_0, NI start, NI stop) { NimStringDesc* result; NI length; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_64; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_65; NimStringDesc* res; result = (NimStringDesc*)0;
#line 890 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 893 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 893 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 893 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(stop, start, &TM__Qz4zeDE6R7JMM8n5EHTKIg_64)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_64), ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_65)) { raiseOverflow(); }; length = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_65);
#line 894 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 894 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((length) < ((NI) 0) || (length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 894 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
res = mnewString(((NI) (length)));
#line 895 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 895 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(((NI) 0) < length)) goto LA3_;
#line 896 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(((NI) 0)) >= (NU)(res ? res->Sup.len : 0)){ raiseIndexError2(((NI) 0),(res ? res->Sup.len : 0)-1); } if ((NU)(start) >= (NU)(dataLen_0)){ raiseIndexError2(start,dataLen_0-1); } if ((length) < ((NI) 0) || (length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 896 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&res->data[((NI) 0)]))), ((void*) ((&data[start]))), ((NI) (length)));
}
LA3_: ;
result = copyString(res); return result;}
#line 1005 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, reason__f1Op8CcrwfAqnPYFIL13sw)(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg* response) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 1006 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1007 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 1007 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!((*response).status == ((tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw) 0))) goto LA3_;
#line 1008 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NIM_BOOL T7_;
#line 1008 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T7_ = (NIM_BOOL)0;
#line 1008 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T7_ = ((*response).rsn.s == ((NI) -1)); if (!(T7_)) goto LA8_;
#line 1008 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T7_ = ((*response).rsn.e == ((NI) -1)); LA8_: ;
if (!T7_) goto LA9_;
result = ((NimStringDesc*) NIM_NIL); }
goto LA5_;
LA9_: ;
{
#line 1011 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1011 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = toString__KYOevQIPdg9c12wmzDXII9aA((*response).data->data, ((*response).data ? (*response).data->Sup.len : 0), (*response).rsn.s, (*response).rsn.e); }
LA5_: ;
}
goto LA1_;
LA3_: ;
{ result = ((NimStringDesc*) NIM_NIL); }
LA1_: ;
return result;}
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, compare__iOrQLQ06hcCH5mtsi9a9bTSQ)(NU8* data, NI dataLen_0, tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ* header, NimStringDesc* key) { NI result; NI length; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_66; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_67; NI res; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_68;{ result = (NI)0;
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt((*header).name.e, (*header).name.s, &TM__Qz4zeDE6R7JMM8n5EHTKIg_66)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_66), ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_67)) { raiseOverflow(); }; length = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_67);
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimSubInt(length, (key ? key->Sup.len : 0), &TM__Qz4zeDE6R7JMM8n5EHTKIg_68)) { raiseOverflow(); }; res = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_68);
#line 872 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NI idx;
#line 872 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(res == ((NI) 0))) goto LA3_;
#line 873 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
idx = ((NI) 0); { NI i; NI res_2; i = (NI)0;
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res_2 = (*header).name.s; {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NIM_CHAR T8_; NIM_CHAR T9_; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_69; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_70; NI TM__Qz4zeDE6R7JMM8n5EHTKIg_71;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res_2 <= (*header).name.e)) goto LA7;
#line 874 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
i = res_2;
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(i) >= (NU)(dataLen_0)){ raiseIndexError2(i,dataLen_0-1); }
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T8_ = (NIM_CHAR)0; T8_ = nsuToLowerAsciiChar(((NIM_CHAR) (data[i])));
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(idx) >= (NU)(key ? key->Sup.len : 0)){ raiseIndexError2(idx,(key ? key->Sup.len : 0)-1); }
#line 875 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T9_ = (NIM_CHAR)0; T9_ = nsuToLowerAsciiChar(key->data[idx]); if (nimSubInt(((NU8)(T8_)), ((NU8)(T9_)), &TM__Qz4zeDE6R7JMM8n5EHTKIg_69)) { raiseOverflow(); }; res = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_69);
#line 876 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 876 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 876 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!!((res == ((NI) 0)))) goto LA12_;
#line 877 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 877 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = res; goto BeforeRet_;
}
LA12_: ;
#line 878 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (nimAddInt(idx, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_70)) { raiseOverflow(); }; idx = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_70);
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(res_2, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_71)) { raiseOverflow(); }; res_2 = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_71); } LA7: ;
}
}
}
LA3_: ;
result = res; }BeforeRet_: ;
return result;}
#line 899 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, X5BX5D___vUOlC4xAfm81gfO9bhIpvAw)(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg* reqresp, NimStringDesc* header) { NimStringDesc* result;{ result = (NimStringDesc*)0;
#line 900 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 901 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 901 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!((*reqresp).status == ((tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw) 0))) goto LA3_;
{ tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ item; NI i; NI L; NI T6_; nimZeroMem((void*)(&item), sizeof(tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ));
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i = ((NI) 0);
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T6_ = ((*reqresp).hdrs ? (*reqresp).hdrs->Sup.len : 0); L = T6_; {
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI TM__Qz4zeDE6R7JMM8n5EHTKIg_72;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i < L)) goto LA8;
#line 902 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(i) >= (NU)((*reqresp).hdrs ? (*reqresp).hdrs->Sup.len : 0)){ raiseIndexError2(i,((*reqresp).hdrs ? (*reqresp).hdrs->Sup.len : 0)-1); } item = (*reqresp).hdrs->data[i];
#line 903 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NI T11_;
#line 903 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 903 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 903 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T11_ = (NI)0; T11_ = compare__iOrQLQ06hcCH5mtsi9a9bTSQ((*reqresp).data->data, ((*reqresp).data ? (*reqresp).data->Sup.len : 0), (&item), header); if (!(T11_ == ((NI) 0))) goto LA12_;
#line 904 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NIM_BOOL T16_;
#line 904 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T16_ = (NIM_BOOL)0;
#line 904 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T16_ = (item.value.s == ((NI) -1)); if (!(T16_)) goto LA17_;
#line 904 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
T16_ = (item.value.e == ((NI) -1)); LA17_: ;
if (!T16_) goto LA18_;
#line 905 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 905 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((NimStringDesc*) NIM_NIL); goto BeforeRet_;
}
goto LA14_;
LA18_: ;
{
#line 907 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 907 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 907 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = toString__KYOevQIPdg9c12wmzDXII9aA((*reqresp).data->data, ((*reqresp).data ? (*reqresp).data->Sup.len : 0), item.value.s, item.value.e); goto BeforeRet_;
}
LA14_: ;
}
LA12_: ;
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i, ((NI) 1), &TM__Qz4zeDE6R7JMM8n5EHTKIg_72)) { raiseOverflow(); }; i = (NI)(TM__Qz4zeDE6R7JMM8n5EHTKIg_72);
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
{ NI T23_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
T23_ = ((*reqresp).hdrs ? (*reqresp).hdrs->Sup.len : 0); if (!!((T23_ == L))) goto LA24_;
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_73));
}
LA24_: ;
} LA8: ;
}
}
}
LA3_: ;
result = ((NimStringDesc*) NIM_NIL); }BeforeRet_: ;
return result;}
#line 1075 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, contentLength__vlFH1TFiatqCIdgiFp1V9ag)(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg* reqresp) { NI result; result = (NI)0;
#line 1080 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((NI) -1);
#line 1081 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NimStringDesc* nstr;
#line 1081 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!((*reqresp).status == ((tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw) 0))) goto LA3_;
#line 1082 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1082 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
nstr = X5BX5D___vUOlC4xAfm81gfO9bhIpvAw(reqresp, ((NimStringDesc*) &TM__Qz4zeDE6R7JMM8n5EHTKIg_74));
#line 1083 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 1083 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1083 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!((nstr ? nstr->Sup.len : 0) == ((NI) 0))) goto LA7_;
#line 1084 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((NI) 0); }
goto LA5_;
LA7_: ;
{ NimStringDesc* vstr;
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1086 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
vstr = nsuStrip(nstr, NIM_TRUE, NIM_TRUE, TM__Qz4zeDE6R7JMM8n5EHTKIg_75);
#line 1087 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((NI) 0); { NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
#line 1088 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1088 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
colontmp_ = (vstr ? vstr->Sup.len : 0);
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < colontmp_)) goto LA12;
#line 1088 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
i = i_2;
#line 1089 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{ NI r; NI digit;
#line 1089 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(i) >= (NU)(vstr ? vstr->Sup.len : 0)){ raiseIndexError2(i,(vstr ? vstr->Sup.len : 0)-1); } if (!((NUM__CfzgAlF9bH4Tsv9aIV5HeZUA[(NU)(((NU8)(vstr->data[i])))>>3] &(1U<<((NU)(((NU8)(vstr->data[i])))&7U)))!=0)) goto LA15_;
#line 1090 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
r = result;
#line 1091 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1091 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1091 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if ((NU)(i) >= (NU)(vstr ? vstr->Sup.len : 0)){ raiseIndexError2(i,(vstr ? vstr->Sup.len : 0)-1); } digit = (NI)(((NU8)(vstr->data[i])) - ((NI) 48));
#line 1092 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1092 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
#line 1092 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
r = (NI)((NI)(r * ((NI) 10)) + digit);
#line 1093 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
{
#line 1093 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
if (!(r < result)) goto LA19_;
#line 1095 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((NI) -1);
#line 1096 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA10;
}
goto LA17_;
LA19_: ;
{
#line 1098 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = r; }
LA17_: ;
}
goto LA13_;
LA15_: ;
{
#line 1100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
result = ((NI) -1);
#line 1101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-http-utils/httputils.nim"
goto LA10;
}
LA13_: ;
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 += ((NI) 1); } LA12: ;
}
} LA10: ;
}
LA5_: ;
}
LA3_: ;
return result;}
N_LIB_PRIVATE N_NIMCALL(void, httputils_httputilsDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__Qz4zeDE6R7JMM8n5EHTKIg_2_10[10];
NI TM__Qz4zeDE6R7JMM8n5EHTKIg_4;
static char* NIM_CONST TM__Qz4zeDE6R7JMM8n5EHTKIg_3[10] = {
"MethodGet",
"MethodPost",
"MethodHead",
"MethodPut",
"MethodDelete",
"MethodTrace",
"MethodOptions",
"MethodConnect",
"MethodPatch",
"MethodError"};
static TNimNode* TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[8];
static TNimNode* TM__Qz4zeDE6R7JMM8n5EHTKIg_21_5[5];
NI TM__Qz4zeDE6R7JMM8n5EHTKIg_23;
static char* NIM_CONST TM__Qz4zeDE6R7JMM8n5EHTKIg_22[5] = {
"HttpVersion09",
"HttpVersion11",
"HttpVersion10",
"HttpVersion20",
"HttpVersionError"};
static TNimNode* TM__Qz4zeDE6R7JMM8n5EHTKIg_24_2[2];
NI TM__Qz4zeDE6R7JMM8n5EHTKIg_26;
static char* NIM_CONST TM__Qz4zeDE6R7JMM8n5EHTKIg_25[2] = {
"Success",
"Failure"};
static TNimNode* TM__Qz4zeDE6R7JMM8n5EHTKIg_27_2[2];
static TNimNode* TM__Qz4zeDE6R7JMM8n5EHTKIg_28_2[2];
static TNimNode TM__Qz4zeDE6R7JMM8n5EHTKIg_0[35];NTI__bMq0sooE6Gop1f7wiKaIpw_.size = sizeof(tyEnum_HttpMethod__bMq0sooE6Gop1f7wiKaIpw);
NTI__bMq0sooE6Gop1f7wiKaIpw_.kind = 14;
NTI__bMq0sooE6Gop1f7wiKaIpw_.base = 0;
NTI__bMq0sooE6Gop1f7wiKaIpw_.flags = 3;
NTI__bMq0sooE6Gop1f7wiKaIpw_.name = "HttpMethod";
NTI__bMq0sooE6Gop1f7wiKaIpw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__bMq0sooE6Gop1f7wiKaIpw_;
for (TM__Qz4zeDE6R7JMM8n5EHTKIg_4 = 0; TM__Qz4zeDE6R7JMM8n5EHTKIg_4 < 10; TM__Qz4zeDE6R7JMM8n5EHTKIg_4++) {
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_4+0].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_4+0].offset = TM__Qz4zeDE6R7JMM8n5EHTKIg_4;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_4+0].name = TM__Qz4zeDE6R7JMM8n5EHTKIg_3[TM__Qz4zeDE6R7JMM8n5EHTKIg_4];
TM__Qz4zeDE6R7JMM8n5EHTKIg_2_10[TM__Qz4zeDE6R7JMM8n5EHTKIg_4] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_4+0];
}
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[10].len = 10; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[10].kind = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[10].sons = &TM__Qz4zeDE6R7JMM8n5EHTKIg_2_10[0];
NTI__bMq0sooE6Gop1f7wiKaIpw_.node = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[10];
NTI__yWb7T032g3NouYFbj9ctMsg_.size = sizeof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg);
NTI__yWb7T032g3NouYFbj9ctMsg_.kind = 18;
NTI__yWb7T032g3NouYFbj9ctMsg_.base = 0;
NTI__yWb7T032g3NouYFbj9ctMsg_.flags = 2;
NTI__yWb7T032g3NouYFbj9ctMsg_.name = "HttpResponseHeader";
NTI__yWb7T032g3NouYFbj9ctMsg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__yWb7T032g3NouYFbj9ctMsg_;
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[0] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[12];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[12].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[12].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, data);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[12].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[12].name = "data";
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[1] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[13];
NTI__rGcR6EJZgQyaEAOs3tK02Q_.size = sizeof(tyEnum_HttpVersion__rGcR6EJZgQyaEAOs3tK02Q);
NTI__rGcR6EJZgQyaEAOs3tK02Q_.kind = 14;
NTI__rGcR6EJZgQyaEAOs3tK02Q_.base = 0;
NTI__rGcR6EJZgQyaEAOs3tK02Q_.flags = 3;
NTI__rGcR6EJZgQyaEAOs3tK02Q_.name = "HttpVersion";
NTI__rGcR6EJZgQyaEAOs3tK02Q_.nextType = nimTypeRoot; nimTypeRoot=&NTI__rGcR6EJZgQyaEAOs3tK02Q_;
for (TM__Qz4zeDE6R7JMM8n5EHTKIg_23 = 0; TM__Qz4zeDE6R7JMM8n5EHTKIg_23 < 5; TM__Qz4zeDE6R7JMM8n5EHTKIg_23++) {
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_23+14].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_23+14].offset = TM__Qz4zeDE6R7JMM8n5EHTKIg_23;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_23+14].name = TM__Qz4zeDE6R7JMM8n5EHTKIg_22[TM__Qz4zeDE6R7JMM8n5EHTKIg_23];
TM__Qz4zeDE6R7JMM8n5EHTKIg_21_5[TM__Qz4zeDE6R7JMM8n5EHTKIg_23] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_23+14];
}
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[19].len = 5; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[19].kind = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[19].sons = &TM__Qz4zeDE6R7JMM8n5EHTKIg_21_5[0];
NTI__rGcR6EJZgQyaEAOs3tK02Q_.node = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[19];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[13].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[13].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, version);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[13].typ = (&NTI__rGcR6EJZgQyaEAOs3tK02Q_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[13].name = "version";
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[2] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[20];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[20].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[20].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, code);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[20].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[20].name = "code";
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[3] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[21];
NTI__jDg5OvWC3rxWlE9aA2GJFnw_.size = sizeof(tyEnum_HttpStatus__jDg5OvWC3rxWlE9aA2GJFnw);
NTI__jDg5OvWC3rxWlE9aA2GJFnw_.kind = 14;
NTI__jDg5OvWC3rxWlE9aA2GJFnw_.base = 0;
NTI__jDg5OvWC3rxWlE9aA2GJFnw_.flags = 3;
NTI__jDg5OvWC3rxWlE9aA2GJFnw_.name = "HttpStatus";
NTI__jDg5OvWC3rxWlE9aA2GJFnw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__jDg5OvWC3rxWlE9aA2GJFnw_;
for (TM__Qz4zeDE6R7JMM8n5EHTKIg_26 = 0; TM__Qz4zeDE6R7JMM8n5EHTKIg_26 < 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_26++) {
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_26+22].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_26+22].offset = TM__Qz4zeDE6R7JMM8n5EHTKIg_26;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_26+22].name = TM__Qz4zeDE6R7JMM8n5EHTKIg_25[TM__Qz4zeDE6R7JMM8n5EHTKIg_26];
TM__Qz4zeDE6R7JMM8n5EHTKIg_24_2[TM__Qz4zeDE6R7JMM8n5EHTKIg_26] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[TM__Qz4zeDE6R7JMM8n5EHTKIg_26+22];
}
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[24].len = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[24].kind = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[24].sons = &TM__Qz4zeDE6R7JMM8n5EHTKIg_24_2[0];
NTI__jDg5OvWC3rxWlE9aA2GJFnw_.node = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[24];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[21].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[21].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, status);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[21].typ = (&NTI__jDg5OvWC3rxWlE9aA2GJFnw_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[21].name = "status";
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[4] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[25];
NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_.size = sizeof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ);
NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_.kind = 18;
NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_.base = 0;
NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_.flags = 3;
NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_.name = "HttpHeaderPart";
NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_;
TM__Qz4zeDE6R7JMM8n5EHTKIg_27_2[0] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[27];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[27].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[27].offset = offsetof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ, s);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[27].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[27].name = "s";
TM__Qz4zeDE6R7JMM8n5EHTKIg_27_2[1] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[28];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[28].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[28].offset = offsetof(tyObject_HttpHeaderPart__5dkDE0Xr4WDvVSx9c5XTxqQ, e);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[28].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[28].name = "e";
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[26].len = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[26].kind = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[26].sons = &TM__Qz4zeDE6R7JMM8n5EHTKIg_27_2[0];
NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_.node = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[26];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[25].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[25].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, rsn);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[25].typ = (&NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[25].name = "rsn";
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[5] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[29];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[29].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[29].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, state);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[29].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[29].name = "state";
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[6] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[30];
NTI__RG2q8UsJLeu5juOi9aonSwQ_.size = sizeof(tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ);
NTI__RG2q8UsJLeu5juOi9aonSwQ_.kind = 18;
NTI__RG2q8UsJLeu5juOi9aonSwQ_.base = 0;
NTI__RG2q8UsJLeu5juOi9aonSwQ_.flags = 3;
NTI__RG2q8UsJLeu5juOi9aonSwQ_.name = "HttpHeader";
NTI__RG2q8UsJLeu5juOi9aonSwQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__RG2q8UsJLeu5juOi9aonSwQ_;
TM__Qz4zeDE6R7JMM8n5EHTKIg_28_2[0] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[32];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[32].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[32].offset = offsetof(tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ, name);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[32].typ = (&NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[32].name = "name";
TM__Qz4zeDE6R7JMM8n5EHTKIg_28_2[1] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[33];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[33].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[33].offset = offsetof(tyObject_HttpHeader__RG2q8UsJLeu5juOi9aonSwQ, value);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[33].typ = (&NTI__5dkDE0Xr4WDvVSx9c5XTxqQ_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[33].name = "value";
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[31].len = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[31].kind = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[31].sons = &TM__Qz4zeDE6R7JMM8n5EHTKIg_28_2[0];
NTI__RG2q8UsJLeu5juOi9aonSwQ_.node = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[31];
NTI__65L3VWzmyOUTt9b3vxWE6OA_.size = sizeof(tySequence__65L3VWzmyOUTt9b3vxWE6OA*);
NTI__65L3VWzmyOUTt9b3vxWE6OA_.kind = 24;
NTI__65L3VWzmyOUTt9b3vxWE6OA_.base = (&NTI__RG2q8UsJLeu5juOi9aonSwQ_);
NTI__65L3VWzmyOUTt9b3vxWE6OA_.flags = 2;
NTI__65L3VWzmyOUTt9b3vxWE6OA_.name = "seq[HttpHeader]";
NTI__65L3VWzmyOUTt9b3vxWE6OA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__65L3VWzmyOUTt9b3vxWE6OA_;
NTI__65L3VWzmyOUTt9b3vxWE6OA_.marker = Marker_tySequence__65L3VWzmyOUTt9b3vxWE6OA;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[30].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[30].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, hdrs);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[30].typ = (&NTI__65L3VWzmyOUTt9b3vxWE6OA_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[30].name = "hdrs";
TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[7] = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[34];
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[34].kind = 1;
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[34].offset = offsetof(tyObject_HttpResponseHeader__yWb7T032g3NouYFbj9ctMsg, length);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[34].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[34].name = "length";
TM__Qz4zeDE6R7JMM8n5EHTKIg_0[11].len = 8; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[11].kind = 2; TM__Qz4zeDE6R7JMM8n5EHTKIg_0[11].sons = &TM__Qz4zeDE6R7JMM8n5EHTKIg_20_8[0];
NTI__yWb7T032g3NouYFbj9ctMsg_.node = &TM__Qz4zeDE6R7JMM8n5EHTKIg_0[11];
}