/* Generated by Nim Compiler v1.3.5 */
/*   (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

/* section: NIM_merge_HEADERS */

#include "nimbase.h"
#include <string.h>
#include <stdio.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

/* section: NIM_merge_FRAME_DEFINES */
#define nimfr_(x, y)
#define nimln_(x, y)

/* section: NIM_merge_FORWARD_TYPES */
typedef struct tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA;
typedef struct tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA;
typedef struct tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ;
typedef struct tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA;
typedef struct tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g;
typedef struct tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tySequence__HntX7ExXXTSNL4DQEnaeTg tySequence__HntX7ExXXTSNL4DQEnaeTg;
typedef struct tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw;
typedef struct tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ;
typedef struct tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ;
typedef struct tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w;
typedef struct tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA;
typedef struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw;
typedef struct tyObject_SslStruct__hZKic6WnTBMq6Usbg49bnhw tyObject_SslStruct__hZKic6WnTBMq6Usbg49bnhw;
typedef struct tyObject_Table__qagh2zcXAhSb9aRfetCb26g tyObject_Table__qagh2zcXAhSb9aRfetCb26g;
typedef struct tySequence__JiteSJxrvz63iP2o9bcn2Sg tySequence__JiteSJxrvz63iP2o9bcn2Sg;
typedef struct tyTuple__g1w83cyyBYiVU9c8WEJWnjQ tyTuple__g1w83cyyBYiVU9c8WEJWnjQ;
typedef struct tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ;
typedef struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA;
typedef struct tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw;
typedef struct tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw;
typedef struct tyObject_FileStreamObj__9bEVSsOIpkY9cf5lCtaS39bPQ tyObject_FileStreamObj__9bEVSsOIpkY9cf5lCtaS39bPQ;
typedef struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A tyTuple__JfHvHzMrhKkWAUvQKe0i1A;
typedef struct tyObject_Env_httpclientdotnim___diB2NTuAIWY0FO9c5IUJRGg tyObject_Env_httpclientdotnim___diB2NTuAIWY0FO9c5IUJRGg;
typedef struct tyObject_HashSet__bGAilYs5sUICRbD13gZaFg tyObject_HashSet__bGAilYs5sUICRbD13gZaFg;
typedef struct tySequence__8Np6tlClE5az1CyqZdN19bQ tySequence__8Np6tlClE5az1CyqZdN19bQ;
typedef struct tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
typedef struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ;

/* section: NIM_merge_TYPES */
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;
NI align;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
typedef N_NIMCALL_PTR(void, tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ) (void);
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA {
NimStringDesc* version;
NimStringDesc* status;
tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers;
NimStringDesc* body;
tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* bodyStream;
};
typedef NU8 tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA;
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
struct tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ {
NimStringDesc* scheme;
NimStringDesc* username;
NimStringDesc* password;
NimStringDesc* hostname;
NimStringDesc* port;
NimStringDesc* path;
NimStringDesc* query;
NimStringDesc* anchor;
NIM_BOOL opaque;
};
struct RootObj {
TNimType* m_type;
};
struct Exception {
  RootObj Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA {
  Exception Sup;
};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g {
tySequence__HntX7ExXXTSNL4DQEnaeTg* content;
};
struct tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw {
NimStringDesc* name;
NimStringDesc* content;
NIM_BOOL isFile;
union{
struct {NimStringDesc* filename;
NimStringDesc* contentType;
NI64 fileSize;
NIM_BOOL isStream;
} _isFile_1;
};
};
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (NI64 total, NI64 progress, NI64 speed, void* ClE_0);
void* ClE_0;
} tyProc__TSOsjF4c9aXotPerq9cEE56A;
struct tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w {
NI64 ticks;
};
struct tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA {
tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket;
NIM_BOOL connected;
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ currentURL;
tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers;
NI maxRedirects;
NimStringDesc* userAgent;
NI timeout;
tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ* proxy;
tyProc__TSOsjF4c9aXotPerq9cEE56A onProgressChanged;
tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* sslContext;
NI64 contentTotal;
NI64 contentProgress;
NI64 oneSecondProgress;
tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w lastProgressReport;
tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* bodyStream;
NIM_BOOL getBody;
};
struct tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ {
tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ url;
NimStringDesc* auth;
};
struct tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
struct tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA {
  tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw Sup;
};
typedef NU8 tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg;
typedef NIM_CHAR tyArray__QQGLPNVVwLhYjkngqAxXQQ[4001];
typedef NU8 tyEnum_Domain__Q79bEtFARvq0ekDNtvj3Vqg;
typedef NU8 tyEnum_SockType__NQT1bItGG2X9byGdrWX7ujw;
typedef NU8 tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg;
struct tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ {
int fd;
NIM_BOOL isBuffered;
tyArray__QQGLPNVVwLhYjkngqAxXQQ buffer;
NI currPos;
NI bufLen;
NIM_BOOL isSsl;
tyObject_SslStruct__hZKic6WnTBMq6Usbg49bnhw* sslHandle;
tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* sslContext;
NIM_BOOL sslNoHandshake;
NIM_BOOL sslHasPeekChar;
NIM_CHAR sslPeekChar;
NIM_BOOL sslNoShutdown;
NI32 lastError;
tyEnum_Domain__Q79bEtFARvq0ekDNtvj3Vqg domain;
tyEnum_SockType__NQT1bItGG2X9byGdrWX7ujw sockType;
tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg protocol;
};
typedef NU8 tyEnum_SslHandshakeType__9aZhh5f9bRDKgYB8GLASDSqg;
struct tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA {
tyObject_Table__qagh2zcXAhSb9aRfetCb26g* table;
NIM_BOOL isTitleCase;
};
struct tyObject_Table__qagh2zcXAhSb9aRfetCb26g {
tySequence__JiteSJxrvz63iP2o9bcn2Sg* data;
NI counter;
};
struct tyTuple__g1w83cyyBYiVU9c8WEJWnjQ {
NI Field0;
NimStringDesc* Field1;
tySequence__sM4lkSb7zS6F7OVMvW9cffQ* Field2;
};
struct tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ {
  tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw Sup;
};
struct tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA {
NI a;
NI b;
};
typedef N_NIMCALL_PTR(void, tyProc__JQrsH08b4uPTH9cyFPlVOZg) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s);
typedef N_NIMCALL_PTR(NIM_BOOL, tyProc__9bmhFrLahRsL2hltfRDVtlQ) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s);
typedef N_NIMCALL_PTR(void, tyProc__3svSoGIUJIsHkaBL7q4DAQ) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, NI pos);
typedef N_NIMCALL_PTR(NI, tyProc__xflqkf2D1uVClg70czEDHA) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s);
typedef N_NIMCALL_PTR(NI, tyProc__c9c0f59ak4YGQ6neEym8LPKw) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, NimStringDesc** buffer, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA slice);
typedef N_NIMCALL_PTR(NIM_BOOL, tyProc__7jFfqMk9ajToCz6Hv9atCA4A) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, NimStringDesc** line);
typedef N_NIMCALL_PTR(NI, tyProc__2VVzVL9bOnKhj1eZKkf9cEuA) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, void* buffer, NI bufLen);
typedef N_NIMCALL_PTR(void, tyProc__ki6p1QyfOkJLQJ9aw5NI0AQ) (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, void* buffer, NI bufLen);
struct tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ {
  RootObj Sup;
tyProc__JQrsH08b4uPTH9cyFPlVOZg closeImpl;
tyProc__9bmhFrLahRsL2hltfRDVtlQ atEndImpl;
tyProc__3svSoGIUJIsHkaBL7q4DAQ setPositionImpl;
tyProc__xflqkf2D1uVClg70czEDHA getPositionImpl;
tyProc__c9c0f59ak4YGQ6neEym8LPKw readDataStrImpl;
tyProc__7jFfqMk9ajToCz6Hv9atCA4A readLineImpl;
tyProc__2VVzVL9bOnKhj1eZKkf9cEuA readDataImpl;
tyProc__2VVzVL9bOnKhj1eZKkf9cEuA peekDataImpl;
tyProc__ki6p1QyfOkJLQJ9aw5NI0AQ writeDataImpl;
tyProc__JQrsH08b4uPTH9cyFPlVOZg flushImpl;
};
struct tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw {
  tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ Sup;
NimStringDesc* data;
NI pos;
};
struct tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw {
NI64 seconds;
NI nanosecond;
};
typedef N_CLOSURE_PTR(void, TM__9brjMmGFaIx4wBkLyxxXZxw_47) (NI64 total, NI64 progress, NI64 speed);
typedef NU8 tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg;
struct tyObject_FileStreamObj__9bEVSsOIpkY9cf5lCtaS39bPQ {
  tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ Sup;
FILE* f;
};
typedef NimStringDesc* tyArray__Re75IspeoxXy2oCZHwcRrA[2];
typedef NimStringDesc* tyArray__haiLFy0nBviVTKFGuwztzQ[5];
struct tyTuple__JfHvHzMrhKkWAUvQKe0i1A {
void* Field0;
tyObject_Env_httpclientdotnim___diB2NTuAIWY0FO9c5IUJRGg* Field1;
};
struct tyObject_HashSet__bGAilYs5sUICRbD13gZaFg {
tySequence__8Np6tlClE5az1CyqZdN19bQ* data;
NI counter;
};
struct tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w {
tyObject_SslStruct__hZKic6WnTBMq6Usbg49bnhw* context;
tyObject_HashSet__bGAilYs5sUICRbD13gZaFg referencedData;
tyObject_SslContextExtraInternalcolonObjectType___22zILeNTc8ClX7DrPZ3XOQ* extraInternal;
};
typedef NU8 tyEnum_SslProtVersion__zq9bkhgPAE6ngdz7HLdOTDw;
typedef NU8 tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg;
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ {
NI Field0;
NI Field1;
};

/* section: NIM_merge_SEQ_TYPES */
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence__HntX7ExXXTSNL4DQEnaeTg {
  TGenericSeq Sup;
  tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw data[SEQ_DECL_SIZE];
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
  TGenericSeq Sup;
  tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];
};
struct tySequence__JiteSJxrvz63iP2o9bcn2Sg {
  TGenericSeq Sup;
  tyTuple__g1w83cyyBYiVU9c8WEJWnjQ data[SEQ_DECL_SIZE];
};
struct tySequence__8Np6tlClE5az1CyqZdN19bQ {
  TGenericSeq Sup;
  tyTuple__1v9bKyksXWMsm0vNwmZ4EuQ data[SEQ_DECL_SIZE];
};

/* section: NIM_merge_PROC_HEADERS */
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
static N_NIMCALL(void, TM__9brjMmGFaIx4wBkLyxxXZxw_2)(void);
N_LIB_PRIVATE N_NIMCALL(void, nimRegisterThreadLocalMarker)(tyProc__T4eqaYlFJYZUv9aG9b1TV0bQ markerProc);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, readAll__Z3k8HYNsCnt82WLNxaYQiQ)(tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void);
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, request__l3ySZTtQYFo8zbxxzy3QLQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA httpMethod, NimStringDesc* body, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart);
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, request__nrxBG9atKB7KhRUylZop7gA)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* httpMethod, NimStringDesc* body, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__wAzSnEu9cCHHjvPQlWBZUeQ)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, requestAux__nrxBG9atKB7KhRUylZop7gA_2)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* httpMethod, NimStringDesc* body, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart);
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, parseUri__rbZTAh57otUDsvMlWgTQog)(NimStringDesc* uri, tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ* Result);
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, format__N4eE9a9au9cfobiXawLjYLIIw)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getBoundary__YX3WF0FwpX3W1dnYusiiXw)(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* p);
N_LIB_PRIVATE N_NIMCALL(NI, rand__v7jZDEs4VOsrcpvk0yo8Rg)(NI max);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__KV0xCsBzaN9coqb7PG9au0oQ)(NimStringDesc* s, NimStringDesc* sub);
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___Iy0txpq5svlfrlKS9bU28Kw)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, NimStringDesc* key, NimStringDesc* value);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_LIB_PRIVATE N_NIMCALL(void, readFileSizes__cRvnVPBe4rJR9cIs5w6AJww)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart);
N_LIB_PRIVATE N_NIMCALL(NI64, nosgetFileSize)(NimStringDesc* file);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, format__gVWUjCpNHhBYO9ai6KMPMKA)(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw* entry, NimStringDesc* boundary);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimInt64ToStr)(NI64 x);
N_LIB_PRIVATE N_NIMCALL(void, newConnection__OTRwNmMCrM24z6RZ2ZmLqg)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ* url);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToLowerAsciiStr)(NimStringDesc* s);
static N_NIMCALL(void, Marker_tyRef__a8IyoxVeydlRwzTM9aX5stg)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, close__LSkbNH0VA1HBcOjYrAgBmA)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client);
N_LIB_PRIVATE N_NIMCALL(void, close__dPXIsN1nx9bPvap47WTEMow)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg flags);
N_LIB_PRIVATE N_NIMCALL(NI, nsuParseInt)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ*, dial__oD5cdlP49a1aM6tVxzT4h1Q)(NimStringDesc* address, NU16 port, tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg protocol, NIM_BOOL buffered);
N_LIB_PRIVATE N_NIMCALL(void, wrapConnectedSocket__zB421aJ04hXbpUeGq3doVQ)(tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* ctx, tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, tyEnum_SslHandshakeType__9aZhh5f9bRDKgYB8GLASDSqg handshake, NimStringDesc* hostname);
static N_INLINE(Exception*, getCurrentException)(void);
static N_INLINE(void, popCurrentException)(void);
N_LIB_PRIVATE N_NIMCALL(void, initUri__zcwd3ynrfDQcP9c8k9cEeg9aQ)(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ* Result);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, generateHeaders__BYtup6hw7Ii2LjHd19cuuhA)(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ* requestUrl, NimStringDesc* httpMethod, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ* proxy);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToUpperAsciiStr)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___9aI7qw5xvHD3Zb9b9cJik76iw)(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ* u);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, hasKey__jz0AniI5No9bnkMo9aqdkc2A)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, NimStringDesc* key);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, encode__D4bDwZBUb9bAJslbVxAPmbg)(NimStringDesc* s, NIM_BOOL safe);
N_LIB_PRIVATE N_NIMCALL(NI, len__J4hnoSPhc6KiK07n7KgZ9cQ)(tyObject_Table__qagh2zcXAhSb9aRfetCb26g* t);
static N_INLINE(NIM_BOOL, isFilled__5Qpmu5QqwDY0esVXn6wf7wtables)(NI hcode);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___JcSadDOgpYarTBAbeNWqTw)(tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA httpMethod);
N_LIB_PRIVATE N_NIMCALL(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA*, newHttpHeaders__m5XuFRjmtJnvrQCk25khAA)(NIM_BOOL titleCase);
N_LIB_PRIVATE N_NIMCALL(void, send__sP9af4zGpnwmZkRofZDfbQQ)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, NimStringDesc* data, tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg flags);
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, parseResponse__3AoUMM1jyrz8BUdsjBoKYQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NIM_BOOL getBody);
static N_NIMCALL(void, Marker_tyRef__4TQLbGMaS0XKfyPIVovh9bQ)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, recvLine__xQiPYgNz7DM0cyQl7evHRQ)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, NI timeout, tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg flags, NI maxLength);
N_LIB_PRIVATE N_NIMCALL(NI, skipIgnoreCase__Z630VYBL4pZDWlOyn05K5w)(NimStringDesc* s, NimStringDesc* token, NI start);
N_LIB_PRIVATE N_NIMCALL(void, httpError__QP4vBkFseuds6dKm2yqk9cw)(NimStringDesc* msg);
static N_NIMCALL(void, Marker_tyRef__gCE9a0YMLE9ajJWvz01J9bheg)(void* p, NI op);
static N_INLINE(NI, skipWhitespace__6WuCTfsk2bOGNtGSxg9cZWAparseutils)(NimStringDesc* s, NI start);
static N_INLINE(NimStringDesc*, X5BX5D___ogYTOKbgqbjPfyC123US1gsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x);
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem)(NI a, NI b);
static N_INLINE(NI, parseUntil__jfFErPNXs9cw9bvuw3hS0GVAparseutils)(NimStringDesc* s, NimStringDesc** token, NIM_CHAR until, NI start);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__2yh9cer0ymNRHlOOg8P7IuA)(NimStringDesc* s, NI first, NI last);
N_LIB_PRIVATE N_NIMCALL(void, add__Iy0txpq5svlfrlKS9bU28Kw_2)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, NimStringDesc* key, NimStringDesc* value);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuStrip)(NimStringDesc* s, NIM_BOOL leading, NIM_BOOL trailing, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars);
N_LIB_PRIVATE N_NIMCALL(NI, len__u7Y7mis1lgEx9cfeUB58mwA)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers);
N_LIB_PRIVATE N_NIMCALL(NI, code__74MIEFap0tx9bAcFdN6ES7Q)(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* response);
static N_INLINE(NimStringDesc*, X5BX5D___FPvLvuwqfYMFkcbGfPM8QQsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x);
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b);
N_LIB_PRIVATE N_NIMCALL(tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw*, newStringStream__9aLRtgEYeRMrZKrObtoOslQ)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(void, parseBody__nesWh4uP9aaR2HAQTFYAzUA)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, NimStringDesc* httpVersion);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toString__vY9b9br9btFmrOxuFGpY9cNqbQ)(tySequence__sM4lkSb7zS6F7OVMvW9cffQ* values);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, getOrDefault__aSNwyYYZ2RsZRzsI4edhhA)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, NimStringDesc* key, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* default_0);
N_LIB_PRIVATE N_NIMCALL(void, parseChunks__LSkbNH0VA1HBcOjYrAgBmA_2)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client);
N_LIB_PRIVATE N_NIMCALL(NI, recvFull__yQD3rUDgVn4FSoNLCDnXQQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NI size, NI timeout, NIM_BOOL keep);
static N_INLINE(NimStringDesc*, recv__RNH6ElAkiN5likr2EisKHQnet)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, NI size, NI timeout, tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg flags);
N_LIB_PRIVATE N_NIMCALL(NI, recv__WAuvR33LNsmM2rTnugz1Lw)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, NimStringDesc** data, NI size, NI timeout, tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg flags);
N_LIB_PRIVATE N_NIMCALL(void, write__egjcKjt8WddLFyjTFl5BAw)(tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, NimStringDesc* x);
N_LIB_PRIVATE N_NIMCALL(void, reportProgress__gU9aunvzmdn878ItM4BwBjQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NI64 progress);
N_LIB_PRIVATE N_NIMCALL(NI64, inSeconds__df0d89cDnRIju9aB6p1W1qVA_2)(tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw dur);
N_LIB_PRIVATE N_NIMCALL(tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw, minus___p9cBm7joedh4BwcboQ3HMVQ)(tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w a, tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w b);
N_LIB_PRIVATE N_NIMCALL(tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w, getMonoTime__QkEugs2Q2iFK9b83sl2B6wA)(void);
N_LIB_PRIVATE N_NIMCALL(void, setPosition__cci01mizUCs1g9a9bQPBwweQ_2)(tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, NI pos);
N_LIB_PRIVATE N_NIMCALL(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA*, override__FtvT5N1bkQfcJQGIp9aKlhQ)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* fallback, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* override);
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(void, X5BX5Deq___ot6ARD7jycF5zD3Vxo4ZCw)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, NimStringDesc* key, tySequence__sM4lkSb7zS6F7OVMvW9cffQ* value);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen);
N_LIB_PRIVATE N_NIMCALL(void, sendFile__Yb9cHECVaxEDx9bEF54vo7fg)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw* entry);
N_LIB_PRIVATE N_NIMCALL(tyObject_FileStreamObj__9bEVSsOIpkY9cf5lCtaS39bPQ*, newFileStream__cwYJiP3D7DOTCJxCdBqBZQ)(NimStringDesc* filename, tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg mode, NI bufSize);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, readStr__Z7JDISIOZLxtyOOY7L8wDw)(tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s, NI length);
N_LIB_PRIVATE N_NIMCALL(void, close__y1KA3B0U09bKtU09am9a9avRYQ_4)(tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* s);
static N_INLINE(NimStringDesc**, X5BX5D___qAX9aHx35KUFY79aX8PJ3xRgsystem)(NimStringDesc** s, NI sLen_0, NI i);
static N_INLINE(NIM_BOOL, contains__MghwuKjQqmVLYE8A59cNGHgsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item);
static N_INLINE(NI, find__CWgb1wQSxTCKtdHVU5pCYQsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, redirection__7c9c0MkLRudbFZ1hPGI7gVw)(NimStringDesc* status);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNewLocation__zVcgYlyVeZFDopwaR9ao7Jg)(NimStringDesc* lastURL, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers);
static N_NIMCALL(void, Marker_tyRef__k2G0qTEPEku6GckdV5VRSg)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__SUIjZnd1Y19cJUK5VjRtmJw)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w*, newContext__p45vOS9b3iK2JJ1Y7aIJ9bUA)(tyEnum_SslProtVersion__zq9bkhgPAE6ngdz7HLdOTDw protVersion, tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg verifyMode, NimStringDesc* certFile, NimStringDesc* keyFile, NimStringDesc* cipherList, NimStringDesc* caDir, NimStringDesc* caFile);
static N_NIMCALL(void, Marker_tySequence__HntX7ExXXTSNL4DQEnaeTg)(void* p, NI op);
static N_NIMCALL(void, Marker_tyRef__C2BQ9bBtquATvyiqBZFy3Tg)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void, add__HbWlMUs0iva17vWBFgglEg)(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* p, NimStringDesc* name, NimStringDesc* content, NimStringDesc* filename, NimStringDesc* contentType, NIM_BOOL useStream);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuCenterString)(NimStringDesc* s, NI width, NIM_CHAR fillChar);
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, get__SQXTd9b9cyXE8FwfJt6Pnkvg)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, responseContent__DKrroZapW6BixNtwAIldXw)(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* resp);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, is4xx__H9bBool5Ke9ajYGN7CfPerhw)(NI code);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, is5xx__H9bBool5Ke9ajYGN7CfPerhw_2)(NI code);
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, post__9bZaOcqleAYi4qob2S85AJQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* body, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart);
N_LIB_PRIVATE N_NIMCALL(void, fileError__QP4vBkFseuds6dKm2yqk9cw_2)(NimStringDesc* msg);

/* section: NIM_merge_DATA */
extern TNimType NTI__LP7l6kWJNPJLySYXWH5AYA_;
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__9brjMmGFaIx4wBkLyxxXZxw_3 = {
0x00, 0x24, 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, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_4, "httpclient.nim(1040, 11) `not url.contains({\'\\c\', \'\\n\'})` url s"
"houldn\'t contain any newline characters", 102);
extern TNimType NTI__Ie1m0dv1ZHg72IgPRr1cDw_;
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_5, "No uri scheme supplied.", 23);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_6, "Content-Type", 12);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_7, "multipart/form-data; boundary=", 30);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_8, "--", 2);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_9, "\015\012", 2);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_10, "Content-Disposition: form-data; name=\"", 38);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_11, "\"", 1);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_12, "; filename=\"", 12);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_13, "\"\015\012", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_14, "Content-Type: ", 14);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_15, "\015\012\015\012", 4);
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_16, "Content-Length", 14);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_17, "https", 5);
extern TNimType NTI__iLZrPn9anoh9ad1MmO0RczFw_;
N_LIB_PRIVATE TNimType NTI__L1L9b70HFrKWeYV59a3EWeaA_;
N_LIB_PRIVATE TNimType NTI__a8IyoxVeydlRwzTM9aX5stg_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_18, "SSL support is not available. Cannot connect over SSL. Compile "
"with -d:ssl to enable.", 85);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_19, "443", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_20, "/", 1);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_21, "\?", 1);
extern TNimType NTI__j49bukNPrq747O1GRd4Ng9bQ_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_22, " HTTP/1.1\015\012", 11);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_23, "Host", 4);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_24, "Host: ", 6);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_25, ":", 1);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_26, "Connection", 10);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_27, "Connection: Keep-Alive\015\012", 24);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_28, "Proxy-Authorization: basic ", 27);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_29, ": ", 2);
N_LIB_PRIVATE TNimType NTI__83PZH4UFHIivphKu7iROCA_;
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
extern TNimType NTI__FbZeO4trJhT2CCJ9aLxejqw_;
extern TNimType NTI__1G0jiQbe7KwD5ADza5AZaw_;
N_LIB_PRIVATE TNimType NTI__4TQLbGMaS0XKfyPIVovh9bQ_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_31, "HTTP/", 5);
N_LIB_PRIVATE TNimType NTI__G5GO9cu1ofZT8sZOJbdrvJQ_;
N_LIB_PRIVATE TNimType NTI__gCE9a0YMLE9ajJWvz01J9bheg_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_32, "invalid http version, `", 23);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_33, "`", 1);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_34, "1.1", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_35, "1.0", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_36, "unsupported http version", 24);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_37, "invalid headers", 15);
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__9brjMmGFaIx4wBkLyxxXZxw_38 = {
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}
;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_39, "too many headers", 16);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_40, "Connection was closed before full request has been made", 55);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_41, "Transfer-Encoding", 17);
static NIM_CONST struct {
  TGenericSeq Sup;
  NimStringDesc* data[1];
} TM__9brjMmGFaIx4wBkLyxxXZxw_43 = {{1, 1 | NIM_STRLIT_FLAG}, {((NimStringDesc*) NIM_NIL)}};
static NIM_CONST tySequence__sM4lkSb7zS6F7OVMvW9cffQ* TM__9brjMmGFaIx4wBkLyxxXZxw_42 = ((tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)&TM__9brjMmGFaIx4wBkLyxxXZxw_43);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_44, "chunked", 7);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_45, "Server terminated connection prematurely", 40);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_46, "Invalid chunk size: ", 20);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_48, "Content-Length", 14);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_49, "Got disconnected while trying to read body.", 43);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_50, "Received length doesn\'t match expected length. Wanted ", 54);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_51, " got ", 5);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_52, "Connection", 10);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_53, "close", 5);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_54, "200", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_55, "The proxy server rejected a CONNECT request, so a secure connec"
"tion could not be established.", 93);
extern TNimType NTI__JiteSJxrvz63iP2o9bcn2Sg_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_56, "user-agent", 10);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_57, "User-Agent", 10);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_59, "head", 4);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_60, "connect", 7);
static NIM_CONST tyArray__Re75IspeoxXy2oCZHwcRrA TM__9brjMmGFaIx4wBkLyxxXZxw_58 = {((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_59),
((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_60)}
;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_61, "301", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_62, "302", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_63, "303", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_64, "307", 3);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_65, "308", 3);
N_LIB_PRIVATE NIM_CONST tyArray__haiLFy0nBviVTKFGuwztzQ redirectionNRs__RlB9c6otkMoOuxfTj3Z1QfA = {((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_61),
((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_62),
((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_63),
((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_64),
((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_65)}
;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_66, "Location", 8);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_67, "location header expected", 24);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_68, "GET", 3);
N_LIB_PRIVATE TNimType NTI__UPZdfed89aNSioeMjzFgefA_;
extern TNimType NTI__MkGXUPMSENeRDS7EppfLgA_;
extern TNimType NTI__VaVACK0bpYmqIQ0mKcHfQQ_;
extern TNimType NTI__hLlQjbV9bLNq5PFxYcqacsA_;
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
N_LIB_PRIVATE TNimType NTI__CigKkL8U2DnJdbYRi9aI9aoQ_;
N_LIB_PRIVATE TNimType NTI__k2G0qTEPEku6GckdV5VRSg_;
N_LIB_PRIVATE TNimType NTI__TSOsjF4c9aXotPerq9cEE56A_;
extern TNimType NTI__vr5DoT1jILTGdRlYv1OYpw_;
extern TNimType NTI__HsJiUUcO9cHBdUCi0HwkSTA_;
extern TNimType NTI__Aav8dQoMlCFnZRxA0IhTHQ_;
extern TNimType NTI__FEvFMlkqJiSSGVO6HgTv8w_;
N_LIB_PRIVATE TNimType NTI__SUIjZnd1Y19cJUK5VjRtmJw_;
static NIM_CONST tyProc__TSOsjF4c9aXotPerq9cEE56A TM__9brjMmGFaIx4wBkLyxxXZxw_72 = {NIM_NIL,NIM_NIL};
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_73, "TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY"
"1305_SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-S"
"HA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:"
"ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RS"
"A-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384", 300);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_74, "httpclient.nim(326, 16) `result != nil` failure to initialize t"
"he SSL context", 77);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_75, "content-type", 12);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_76, "httpclient.nim(249, 11) `\012  0 <= result and\012    result <= high("
"int32)` ", 71);
N_LIB_PRIVATE TNimType NTI__pa59bn7R9cBmjUm9clF5koL7g_;
N_LIB_PRIVATE TNimType NTI__35QV9aWmZhP0gkh6RoJTWcw_;
TNimNode* NimDT___35QV9aWmZhP0gkh6RoJTWcw_isFile[3];
N_LIB_PRIVATE TNimType NTI__HntX7ExXXTSNL4DQEnaeTg_;
N_LIB_PRIVATE TNimType NTI__C2BQ9bBtquATvyiqBZFy3Tg_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_79, "name contains a newline character", 33);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_80, "filename contains a newline character", 37);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_81, "contentType contains a newline character", 40);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_82, "------------------------------", 30);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_83, "\012name=\"", 7);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_84, "\"\012", 2);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_85, "\012\012", 2);
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_86, "\012", 1);
extern TNimType NTI__HMIVdYjdZYWskTmTQVo5BQ_;
STRING_LITERAL(TM__9brjMmGFaIx4wBkLyxxXZxw_87, "Unable to open file", 19);

/* section: NIM_merge_VARS */
N_LIB_PRIVATE NIM_THREADVAR tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* defaultSslContext__3GZQajZtKdLpqTTN2RjTzw;
extern NIM_THREADVAR NIM_BOOL nimInErrorMode__759bT87luu8XGcbkw13FUjA;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;
extern NIM_THREADVAR Exception* currException__9bVPeDJlYTi9bQApZpfH8wjg;

/* section: NIM_merge_PROCS */
static N_NIMCALL(void, TM__9brjMmGFaIx4wBkLyxxXZxw_2)(void) {
	nimGCvisit((void*)defaultSslContext__3GZQajZtKdLpqTTN2RjTzw, 0);
}
static N_INLINE(NIM_BOOL*, nimErrorFlag)(void) {
	NIM_BOOL* result;
	result = (NIM_BOOL*)0;
	result = (&nimInErrorMode__759bT87luu8XGcbkw13FUjA);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, body__mkX1oYuRqAkh0RDJcoDCgQ)(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* response) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	{
		NimStringDesc* T5_;
		if (!(((*response).body ? (*response).body->Sup.len : 0) == ((NI) 0))) goto LA3_;
		T5_ = (NimStringDesc*)0;
		T5_ = readAll__Z3k8HYNsCnt82WLNxaYQiQ((*response).bodyStream);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		(*response).body = T5_;
	}
	LA3_: ;
	result = copyString((*response).body);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a, v, ((size_t) (size)));
}
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {
	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest, source, ((size_t) (size)));
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getBoundary__YX3WF0FwpX3W1dnYusiiXw)(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* p) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	{
		NIM_BOOL T3_;
		NI T5_;
		T3_ = (NIM_BOOL)0;
		T3_ = (p == NIM_NIL);
		if (T3_) goto LA4_;
		T5_ = ((*p).content ? (*p).content->Sup.len : 0);
		T3_ = (T5_ == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA6_;
		goto BeforeRet_;
	}
	LA6_: ;
	{
		while (1) {
			NI T10_;
			T10_ = (NI)0;
			T10_ = rand__v7jZDEs4VOsrcpvk0yo8Rg(((NI) IL64(9223372036854775807)));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			result = nimIntToStr(T10_);
			{
				NI i;
				tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw entry;
				NI i_2;
				NI L;
				NI T12_;
				i = (NI)0;
				nimZeroMem((void*)(&entry), sizeof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw));
				i_2 = ((NI) 0);
				T12_ = ((*p).content ? (*p).content->Sup.len : 0);
				L = T12_;
				{
					while (1) {
						if (!(i_2 < L)) goto LA14;
						i = i_2;
						nimCopyMem((void*)(&entry), (NIM_CONST void*)(&(*p).content->data[i_2]), sizeof(entry));
						{
							NIM_BOOL T17_;
							T17_ = (NIM_BOOL)0;
							T17_ = contains__KV0xCsBzaN9coqb7PG9au0oQ(entry.content, result);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							if (!T17_) goto LA18_;
							goto LA11;
						}
						goto LA15_;
						LA18_: ;
						{
							NI T21_;
							T21_ = (((*p).content ? (*p).content->Sup.len : 0)-1);
							if (!(i == T21_)) goto LA22_;
							goto BeforeRet_;
						}
						goto LA15_;
						LA22_: ;
						LA15_: ;
						i_2 += ((NI) 1);
					} LA14: ;
				}
			} LA11: ;
		}
	}
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
	nimCopyMem(dest, source, size);
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	{
		void* T5_;
		void* T6_;
		if (!!((src == NIM_NIL))) goto LA3_;
		T5_ = (void*)0;
		T5_ = ((void*) ((&(*dest).data[(*dest).Sup.len])));
		T6_ = (void*)0;
		T6_ = ((void*) ((*src).data));
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(T5_, T6_, ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, readFileSizes__cRvnVPBe4rJR9cIs5w6AJww)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw* entry;
		NI i;
		NI L;
		NI T2_;
		entry = (tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw*)0;
		i = ((NI) 0);
		T2_ = ((*multipart).content ? (*multipart).content->Sup.len : 0);
		L = T2_;
		{
			while (1) {
				if (!(i < L)) goto LA4;
				entry = (&(*multipart).content->data[i]);
				{
					NI64 fileSize;
					{
						if (!!((*entry).isFile)) goto LA8_;
						goto LA5;
					}
					LA8_: ;
					{
						if (!!((*entry)._isFile_1.isStream)) goto LA12_;
						(*entry)._isFile_1.fileSize = ((NI64) (((*entry).content ? (*entry).content->Sup.len : 0)));
						goto LA5;
					}
					LA12_: ;
					fileSize = nosgetFileSize((*entry).content);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					(*entry)._isFile_1.fileSize = fileSize;
				} LA5: ;
				i += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, format__gVWUjCpNHhBYO9ai6KMPMKA)(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw* entry, NimStringDesc* boundary) {
	NimStringDesc* result;
	NimStringDesc* T1_;
	NimStringDesc* T2_;
	result = (NimStringDesc*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = rawNewString((boundary ? boundary->Sup.len : 0) + 4);
appendString(T1_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_8));
appendString(T1_, boundary);
appendString(T1_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
	result = T1_;
	T2_ = (NimStringDesc*)0;
	T2_ = rawNewString(((*entry).name ? (*entry).name->Sup.len : 0) + 39);
appendString(T2_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_10));
appendString(T2_, (*entry).name);
appendString(T2_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_11));
	result = resizeString(result, (T2_ ? T2_->Sup.len : 0) + 0);
appendString(result, T2_);
	{
		NimStringDesc* T7_;
		NimStringDesc* T8_;
		if (!(*entry).isFile) goto LA5_;
		T7_ = (NimStringDesc*)0;
		T7_ = rawNewString(((*entry)._isFile_1.filename ? (*entry)._isFile_1.filename->Sup.len : 0) + 15);
appendString(T7_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_12));
appendString(T7_, (*entry)._isFile_1.filename);
appendString(T7_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_13));
		result = resizeString(result, (T7_ ? T7_->Sup.len : 0) + 0);
appendString(result, T7_);
		T8_ = (NimStringDesc*)0;
		T8_ = rawNewString(((*entry)._isFile_1.contentType ? (*entry)._isFile_1.contentType->Sup.len : 0) + 16);
appendString(T8_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_14));
appendString(T8_, (*entry)._isFile_1.contentType);
appendString(T8_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
		result = resizeString(result, (T8_ ? T8_->Sup.len : 0) + 0);
appendString(result, T8_);
	}
	goto LA3_;
	LA5_: ;
	{
		NimStringDesc* T10_;
		T10_ = (NimStringDesc*)0;
		T10_ = rawNewString(((*entry).content ? (*entry).content->Sup.len : 0) + 4);
appendString(T10_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_15));
appendString(T10_, (*entry).content);
		result = resizeString(result, (T10_ ? T10_->Sup.len : 0) + 0);
appendString(result, T10_);
	}
	LA3_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, format__N4eE9a9au9cfobiXawLjYLIIw)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
	NimStringDesc* bound;
	NimStringDesc* T1_;
	NI64 length;
	NimStringDesc* T13_;
	NI T14_;
	NimStringDesc* T19_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	bound = getBoundary__YX3WF0FwpX3W1dnYusiiXw(multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T1_ = (NimStringDesc*)0;
	T1_ = rawNewString((bound ? bound->Sup.len : 0) + 30);
appendString(T1_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_7));
appendString(T1_, bound);
	X5BX5Deq___Iy0txpq5svlfrlKS9bU28Kw((*client).headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_6), T1_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	readFileSizes__cRvnVPBe4rJR9cIs5w6AJww(client, multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	length = (NI64)0;
	{
		tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw* entry;
		NI i;
		NI L;
		NI T3_;
		entry = (tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw*)0;
		i = ((NI) 0);
		T3_ = ((*multipart).content ? (*multipart).content->Sup.len : 0);
		L = T3_;
		{
			while (1) {
				NimStringDesc* T6_;
				NimStringDesc* T7_;
				NI T8_;
				if (!(i < L)) goto LA5;
				entry = (&(*multipart).content->data[i]);
				T6_ = (NimStringDesc*)0;
				T7_ = (NimStringDesc*)0;
				T7_ = format__gVWUjCpNHhBYO9ai6KMPMKA((&(*entry)), bound);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				T6_ = rawNewString((T7_ ? T7_->Sup.len : 0) + 2);
appendString(T6_, T7_);
appendString(T6_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
				result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_));
				T8_ = result->Sup.len++;
				result->data[T8_] = copyString(T6_);
				{
					if (!(*entry).isFile) goto LA11_;
					length += (NI64)((*entry)._isFile_1.fileSize + IL64(2));
				}
				LA11_: ;
				i += ((NI) 1);
			} LA5: ;
		}
	}
	T13_ = (NimStringDesc*)0;
	T13_ = rawNewString((bound ? bound->Sup.len : 0) + 4);
appendString(T13_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_8));
appendString(T13_, bound);
appendString(T13_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_8));
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_));
	T14_ = result->Sup.len++;
	result->data[T14_] = copyString(T13_);
	{
		NimStringDesc** s;
		NI i_2;
		NI L_2;
		NI T16_;
		s = (NimStringDesc**)0;
		i_2 = ((NI) 0);
		T16_ = (result ? result->Sup.len : 0);
		L_2 = T16_;
		{
			while (1) {
				if (!(i_2 < L_2)) goto LA18;
				s = (&result->data[i_2]);
				length += ((NI64) (((*s) ? (*s)->Sup.len : 0)));
				i_2 += ((NI) 1);
			} LA18: ;
		}
	}
	T19_ = (NimStringDesc*)0;
	T19_ = nimInt64ToStr(length);
	X5BX5Deq___Iy0txpq5svlfrlKS9bU28Kw((*client).headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_16), T19_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {
	int result;
	result = (int)0;
	result = memcmp(a, b, ((size_t) (size)));
	return result;
}
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) {
	NIM_BOOL result;
	int T1_;
	result = (NIM_BOOL)0;
	T1_ = (int)0;
	T1_ = nimCmpMem(a, b, size);
	result = (T1_ == ((NI32) 0));
	return result;
}
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NI alen;
	NI blen;
{	result = (NIM_BOOL)0;
	alen = (a ? a->Sup.len : 0);
	blen = (b ? b->Sup.len : 0);
	{
		if (!(alen == blen)) goto LA3_;
		{
			if (!(alen == ((NI) 0))) goto LA7_;
			result = NIM_TRUE;
			goto BeforeRet_;
		}
		LA7_: ;
		result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen)));
		goto BeforeRet_;
	}
	LA3_: ;
	}BeforeRet_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__a8IyoxVeydlRwzTM9aX5stg)(void* p, NI op) {
	tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA* a;
	a = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*)p;
	nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(void, close__LSkbNH0VA1HBcOjYrAgBmA)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		if (!(*client).connected) goto LA3_;
		close__dPXIsN1nx9bPvap47WTEMow((*client).socket, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		(*client).connected = NIM_FALSE;
	}
	LA3_: ;
	}BeforeRet_: ;
}
static N_INLINE(Exception*, getCurrentException)(void) {
	Exception* result;
	result = (Exception*)0;
	result = currException__9bVPeDJlYTi9bQApZpfH8wjg;
	return result;
}
static N_INLINE(void, popCurrentException)(void) {
	currException__9bVPeDJlYTi9bQApZpfH8wjg = (*currException__9bVPeDJlYTi9bQApZpfH8wjg).up;
}
static N_INLINE(NIM_BOOL, isFilled__5Qpmu5QqwDY0esVXn6wf7wtables)(NI hcode) {
	NIM_BOOL result;
	result = (NIM_BOOL)0;
	result = !((hcode == ((NI) 0)));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, generateHeaders__BYtup6hw7Ii2LjHd19cuuhA)(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ* requestUrl, NimStringDesc* httpMethod, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ* proxy) {
	NimStringDesc* result;
	NimStringDesc* upperMethod;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	upperMethod = nsuToUpperAsciiStr(httpMethod);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = copyString(upperMethod);
	result = addChar(result, 32);
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (proxy == 0);
		if (T3_) goto LA4_;
		T3_ = eqStrings((*requestUrl).scheme, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_17));
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			NIM_BOOL T9_;
			T9_ = (NIM_BOOL)0;
			T9_ = nsuStartsWith((*requestUrl).path, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_20));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			if (!!(T9_)) goto LA10_;
			result = addChar(result, 47);
		}
		LA10_: ;
		result = resizeString(result, ((*requestUrl).path ? (*requestUrl).path->Sup.len : 0) + 0);
appendString(result, (*requestUrl).path);
		{
			NimStringDesc* T16_;
			if (!(((NI) 0) < ((*requestUrl).query ? (*requestUrl).query->Sup.len : 0))) goto LA14_;
			T16_ = (NimStringDesc*)0;
			T16_ = rawNewString(((*requestUrl).query ? (*requestUrl).query->Sup.len : 0) + 1);
appendString(T16_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_21));
appendString(T16_, (*requestUrl).query);
			result = resizeString(result, (T16_ ? T16_->Sup.len : 0) + 0);
appendString(result, T16_);
		}
		LA14_: ;
	}
	goto LA1_;
	LA5_: ;
	{
		tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ modifiedUrl;
		NimStringDesc* T22_;
		nimZeroMem((void*)(&modifiedUrl), sizeof(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ));
		genericAssign((void*)(&modifiedUrl), (void*)requestUrl, (&NTI__j49bukNPrq747O1GRd4Ng9bQ_));
		{
			if (!eqStrings((*requestUrl).scheme, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_17))) goto LA20_;
			modifiedUrl.scheme = ((NimStringDesc*) NIM_NIL);
		}
		LA20_: ;
		T22_ = (NimStringDesc*)0;
		T22_ = dollar___9aI7qw5xvHD3Zb9b9cJik76iw((&modifiedUrl));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		result = resizeString(result, (T22_ ? T22_->Sup.len : 0) + 0);
appendString(result, T22_);
	}
	LA1_: ;
	result = resizeString(result, 11);
appendString(result, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_22));
	{
		NIM_BOOL T25_;
		T25_ = (NIM_BOOL)0;
		T25_ = hasKey__jz0AniI5No9bnkMo9aqdkc2A(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_23));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!!(T25_)) goto LA26_;
		{
			NimStringDesc* T32_;
			if (!(((*requestUrl).port ? (*requestUrl).port->Sup.len : 0) == 0)) goto LA30_;
			T32_ = (NimStringDesc*)0;
			T32_ = rawNewString(((*requestUrl).hostname ? (*requestUrl).hostname->Sup.len : 0) + 8);
appendString(T32_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_24));
appendString(T32_, (*requestUrl).hostname);
appendString(T32_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
			result = resizeString(result, (T32_ ? T32_->Sup.len : 0) + 0);
appendString(result, T32_);
		}
		goto LA28_;
		LA30_: ;
		{
			NimStringDesc* T34_;
			T34_ = (NimStringDesc*)0;
			T34_ = rawNewString(((*requestUrl).hostname ? (*requestUrl).hostname->Sup.len : 0) + ((*requestUrl).port ? (*requestUrl).port->Sup.len : 0) + 9);
appendString(T34_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_24));
appendString(T34_, (*requestUrl).hostname);
appendString(T34_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_25));
appendString(T34_, (*requestUrl).port);
appendString(T34_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
			result = resizeString(result, (T34_ ? T34_->Sup.len : 0) + 0);
appendString(result, T34_);
		}
		LA28_: ;
	}
	LA26_: ;
	{
		NIM_BOOL T37_;
		T37_ = (NIM_BOOL)0;
		T37_ = hasKey__jz0AniI5No9bnkMo9aqdkc2A(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_26));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!!(T37_)) goto LA38_;
		result = resizeString(result, 24);
appendString(result, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_27));
	}
	LA38_: ;
	{
		NIM_BOOL T42_;
		NimStringDesc* auth;
		NimStringDesc* T46_;
		T42_ = (NIM_BOOL)0;
		T42_ = !((proxy == 0));
		if (!(T42_)) goto LA43_;
		T42_ = !((((*proxy).auth ? (*proxy).auth->Sup.len : 0) == 0));
		LA43_: ;
		if (!T42_) goto LA44_;
		auth = encode__D4bDwZBUb9bAJslbVxAPmbg((*proxy).auth, NIM_FALSE);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T46_ = (NimStringDesc*)0;
		T46_ = rawNewString((auth ? auth->Sup.len : 0) + 29);
appendString(T46_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_28));
appendString(T46_, auth);
appendString(T46_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
		result = resizeString(result, (T46_ ? T46_->Sup.len : 0) + 0);
appendString(result, T46_);
	}
	LA44_: ;
	{
		NimStringDesc* key;
		NimStringDesc* val;
		key = (NimStringDesc*)0;
		val = (NimStringDesc*)0;
		{
			NimStringDesc* k;
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ* v;
			NI L;
			k = (NimStringDesc*)0;
			v = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
			L = len__J4hnoSPhc6KiK07n7KgZ9cQ((*headers).table);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			{
				NI h;
				NI colontmp_;
				NI T50_;
				NI res;
				h = (NI)0;
				colontmp_ = (NI)0;
				T50_ = (((*(*headers).table).data ? (*(*headers).table).data->Sup.len : 0)-1);
				colontmp_ = T50_;
				res = ((NI) 0);
				{
					while (1) {
						if (!(res <= colontmp_)) goto LA52;
						h = res;
						{
							NIM_BOOL T55_;
							T55_ = (NIM_BOOL)0;
							T55_ = isFilled__5Qpmu5QqwDY0esVXn6wf7wtables((*(*headers).table).data->data[h].Field0);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							if (!T55_) goto LA56_;
							k = (*(*headers).table).data->data[h].Field1;
							v = (*(*headers).table).data->data[h].Field2;
							{
								NimStringDesc** value;
								NI i;
								NI L_2;
								NI T59_;
								value = (NimStringDesc**)0;
								i = ((NI) 0);
								T59_ = (v ? v->Sup.len : 0);
								L_2 = T59_;
								{
									while (1) {
										NimStringDesc* T62_;
										if (!(i < L_2)) goto LA61;
										value = (&v->data[i]);
										key = k;
										val = (*value);
										T62_ = (NimStringDesc*)0;
										T62_ = rawNewString((key ? key->Sup.len : 0) + (val ? val->Sup.len : 0) + 4);
appendString(T62_, key);
appendString(T62_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_29));
appendString(T62_, val);
appendString(T62_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
										result = resizeString(result, (T62_ ? T62_->Sup.len : 0) + 0);
appendString(result, T62_);
										i += ((NI) 1);
									} LA61: ;
								}
							}
						}
						LA56_: ;
						res += ((NI) 1);
					} LA52: ;
				}
			}
		}
	}
	result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
	}BeforeRet_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__4TQLbGMaS0XKfyPIVovh9bQ)(void* p, NI op) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* a;
	a = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)p;
	nimGCvisit((void*)(*a).version, op);
	nimGCvisit((void*)(*a).status, op);
	nimGCvisit((void*)(*a).headers, op);
	nimGCvisit((void*)(*a).body, op);
	nimGCvisit((void*)(*a).bodyStream, op);
}
static N_NIMCALL(void, Marker_tyRef__gCE9a0YMLE9ajJWvz01J9bheg)(void* p, NI op) {
	tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ* a;
	a = (tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ*)p;
	nimGCvisit((void*)(*a).Sup.Sup.Sup.parent, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.message, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.trace, op);
	nimGCvisit((void*)(*a).Sup.Sup.Sup.up, op);
}
N_LIB_PRIVATE N_NIMCALL(void, httpError__QP4vBkFseuds6dKm2yqk9cw)(NimStringDesc* msg) {
	tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ* e;
{	e = (tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ*)0;
	e = (tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ*) newObj((&NTI__gCE9a0YMLE9ajJWvz01J9bheg_), sizeof(tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ));
	(*e).Sup.Sup.Sup.Sup.m_type = (&NTI__G5GO9cu1ofZT8sZOJbdrvJQ_);
	(*e).Sup.Sup.Sup.name = "ProtocolError";
	(*e).Sup.Sup.Sup.message = copyString(msg);
	raiseExceptionEx((Exception*)e, "ProtocolError", "httpError", "httpclient.nim", 308);
	goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(NI, skipWhitespace__6WuCTfsk2bOGNtGSxg9cZWAparseutils)(NimStringDesc* s, NI start) {
	NI result;
	result = (NI)0;
	result = ((NI) 0);
	{
		while (1) {
			NIM_BOOL T3_;
			T3_ = (NIM_BOOL)0;
			T3_ = ((NI)(start + result) < (s ? s->Sup.len : 0));
			if (!(T3_)) goto LA4_;
			T3_ = (((NU8)(s->data[(NI)(start + result)])) == ((NU8)(32)) || ((NU8)(s->data[(NI)(start + result)])) == ((NU8)(9)) || ((NU8)(s->data[(NI)(start + result)])) == ((NU8)(11)) || ((NU8)(s->data[(NI)(start + result)])) == ((NU8)(13)) || ((NU8)(s->data[(NI)(start + result)])) == ((NU8)(10)) || ((NU8)(s->data[(NI)(start + result)])) == ((NU8)(12)));
			LA4_: ;
			if (!T3_) goto LA2;
			result += ((NI) 1);
		} LA2: ;
	}
	return result;
}
static N_INLINE(NimStringDesc*, X5BX5D___ogYTOKbgqbjPfyC123US1gsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x) {
	NimStringDesc* result;
	NI a;
	NI L;
	result = (NimStringDesc*)0;
	a = x.a;
	L = (NI)((NI)((NI)((s ? s->Sup.len : 0) - x.b) - a) + ((NI) 1));
	result = mnewString(((NI) (L)));
	{
		NI i;
		NI i_2;
		i = (NI)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				if (!(i_2 < L)) goto LA3;
				i = i_2;
				result->data[i] = s->data[(NI)(i + a)];
				i_2 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem)(NI a, NI b) {
	tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result;
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
	result.a = a;
	result.b = b;
	return result;
}
static N_INLINE(NI, parseUntil__jfFErPNXs9cw9bvuw3hS0GVAparseutils)(NimStringDesc* s, NimStringDesc** token, NIM_CHAR until, NI start) {
	NI result;
	NI i;
	result = (NI)0;
	i = start;
	{
		while (1) {
			NIM_BOOL T3_;
			T3_ = (NIM_BOOL)0;
			T3_ = (i < (s ? s->Sup.len : 0));
			if (!(T3_)) goto LA4_;
			T3_ = !(((NU8)(s->data[i]) == (NU8)(until)));
			LA4_: ;
			if (!T3_) goto LA2;
			i += ((NI) 1);
		} LA2: ;
	}
	result = (NI)(i - start);
	(*token) = substr__2yh9cer0ymNRHlOOg8P7IuA(s, start, (NI)(i - ((NI) 1)));
	return result;
}
static N_INLINE(NimStringDesc*, X5BX5D___FPvLvuwqfYMFkcbGfPM8QQsystem)(NimStringDesc* s, tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA x) {
	NimStringDesc* result;
	NI a;
	NI L;
	result = (NimStringDesc*)0;
	a = x.a;
	L = (NI)((NI)(x.b - a) + ((NI) 1));
	result = mnewString(((NI) (L)));
	{
		NI i;
		NI i_2;
		i = (NI)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				if (!(i_2 < L)) goto LA3;
				i = i_2;
				result->data[i] = s->data[(NI)(i + a)];
				i_2 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
static N_INLINE(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA, dotdot___BokNSDrKN1xmV1nA01G9brAsystem)(NI a, NI b) {
	tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA result;
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
	nimZeroMem((void*)(&result), sizeof(tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA));
	result.a = a;
	result.b = b;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, code__74MIEFap0tx9bAcFdN6ES7Q)(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* response) {
	NI result;
	tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T1_;
	NimStringDesc* T2_;
	NI T3_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	T1_ = dotdot___BokNSDrKN1xmV1nA01G9brAsystem(((NI) 0), ((NI) 2));
	T2_ = (NimStringDesc*)0;
	T2_ = X5BX5D___FPvLvuwqfYMFkcbGfPM8QQsystem((*response).status, T1_);
	T3_ = (NI)0;
	T3_ = nsuParseInt(T2_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = ((NI) (T3_));
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NimStringDesc*, recv__RNH6ElAkiN5likr2EisKHQnet)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, NI size, NI timeout, tySet_tyEnum_SocketFlag__4xio0cAXR7XG4pF9bVcpxEg flags) {
	NimStringDesc* result;
	NI T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	result = mnewString(((NI) (size)));
	T1_ = (NI)0;
	T1_ = recv__WAuvR33LNsmM2rTnugz1Lw(socket, (&result), size, timeout, flags);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(void)(T1_);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, reportProgress__gU9aunvzmdn878ItM4BwBjQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NI64 progress) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	(*client).contentProgress += progress;
	(*client).oneSecondProgress += progress;
	{
		tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w T3_;
		tyObject_Duration__lj9ar6Co3fgk6NgGnVaNpJw T4_;
		NI64 T5_;
		T3_ = getMonoTime__QkEugs2Q2iFK9b83sl2B6wA();
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T4_ = minus___p9cBm7joedh4BwcboQ3HMVQ(T3_, (*client).lastProgressReport);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T5_ = (NI64)0;
		T5_ = inSeconds__df0d89cDnRIju9aB6p1W1qVA_2(T4_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!(IL64(1) < T5_)) goto LA6_;
		{
			tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w T12_;
			if (!!(((*client).onProgressChanged.ClP_0 == 0))) goto LA10_;
			(*client).onProgressChanged.ClE_0? (*client).onProgressChanged.ClP_0((*client).contentTotal, (*client).contentProgress, (*client).oneSecondProgress, (*client).onProgressChanged.ClE_0):((TM__9brjMmGFaIx4wBkLyxxXZxw_47)((*client).onProgressChanged.ClP_0))((*client).contentTotal, (*client).contentProgress, (*client).oneSecondProgress);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			(*client).oneSecondProgress = IL64(0);
			nimZeroMem((void*)(&T12_), sizeof(tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w));
			T12_ = getMonoTime__QkEugs2Q2iFK9b83sl2B6wA();
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			(*client).lastProgressReport = T12_;
		}
		LA10_: ;
	}
	LA6_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(NI, recvFull__yQD3rUDgVn4FSoNLCDnXQQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NI size, NI timeout, NIM_BOOL keep) {
	NI result;
	NI readLen;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	readLen = ((NI) 0);
	{
		while (1) {
			NI remainingSize;
			NI sizeToRecv;
			NimStringDesc* data;
			{
				if (!(size == readLen)) goto LA5_;
				goto LA1;
			}
			LA5_: ;
			remainingSize = (NI)(size - readLen);
			sizeToRecv = ((remainingSize <= ((NI) 4000)) ? remainingSize : ((NI) 4000));
			data = recv__RNH6ElAkiN5likr2EisKHQnet((*client).socket, sizeToRecv, timeout, 2);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			{
				if (!((data ? data->Sup.len : 0) == 0)) goto LA9_;
				close__LSkbNH0VA1HBcOjYrAgBmA(client);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				goto LA1;
			}
			LA9_: ;
			readLen += (data ? data->Sup.len : 0);
			{
				if (!keep) goto LA13_;
				write__egjcKjt8WddLFyjTFl5BAw((*client).bodyStream, data);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			LA13_: ;
			reportProgress__gU9aunvzmdn878ItM4BwBjQ(client, ((NI64) ((data ? data->Sup.len : 0))));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
	} LA1: ;
	result = readLen;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, parseChunks__LSkbNH0VA1HBcOjYrAgBmA_2)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		while (1) {
			NI chunkSize;
			NimStringDesc* chunkSizeStr;
			NI i;
			NI bytesRead;
			chunkSize = ((NI) 0);
			chunkSizeStr = recvLine__xQiPYgNz7DM0cyQl7evHRQ((*client).socket, ((NI) -1), 2, ((NI) 1000000));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			i = ((NI) 0);
			{
				if (!((chunkSizeStr ? chunkSizeStr->Sup.len : 0) == 0)) goto LA5_;
				httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_45));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			LA5_: ;
			{
				while (1) {
					if (!(i < (chunkSizeStr ? chunkSizeStr->Sup.len : 0))) goto LA8;
					switch (((NU8)(chunkSizeStr->data[i]))) {
					case 48 ... 57:
					{
						chunkSize = (NI)((NI)((NU64)(chunkSize) << (NU64)(((NI) 4))) | (NI)(((NU8)(chunkSizeStr->data[i])) - ((NI) 48)));
					}
					break;
					case 97 ... 102:
					{
						chunkSize = (NI)((NI)((NU64)(chunkSize) << (NU64)(((NI) 4))) | (NI)((NI)(((NU8)(chunkSizeStr->data[i])) - ((NI) 97)) + ((NI) 10)));
					}
					break;
					case 65 ... 70:
					{
						chunkSize = (NI)((NI)((NU64)(chunkSize) << (NU64)(((NI) 4))) | (NI)((NI)(((NU8)(chunkSizeStr->data[i])) - ((NI) 65)) + ((NI) 10)));
					}
					break;
					case 59:
					{
						goto LA7;
					}
					break;
					default:
					{
						NimStringDesc* T14_;
						T14_ = (NimStringDesc*)0;
						T14_ = rawNewString((chunkSizeStr ? chunkSizeStr->Sup.len : 0) + 20);
appendString(T14_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_46));
appendString(T14_, chunkSizeStr);
						httpError__QP4vBkFseuds6dKm2yqk9cw(T14_);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					break;
					}
					i += ((NI) 1);
				} LA8: ;
			} LA7: ;
			{
				NI T19_;
				if (!(chunkSize <= ((NI) 0))) goto LA17_;
				T19_ = (NI)0;
				T19_ = recvFull__yQD3rUDgVn4FSoNLCDnXQQ(client, ((NI) 2), (*client).timeout, NIM_FALSE);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				(void)(T19_);
				goto LA1;
			}
			LA17_: ;
			bytesRead = recvFull__yQD3rUDgVn4FSoNLCDnXQQ(client, chunkSize, (*client).timeout, NIM_TRUE);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			{
				if (!!((bytesRead == chunkSize))) goto LA22_;
				httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_45));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			LA22_: ;
			bytesRead = recvFull__yQD3rUDgVn4FSoNLCDnXQQ(client, ((NI) 2), (*client).timeout, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			{
				if (!!((bytesRead == ((NI) 2)))) goto LA26_;
				httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_45));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			}
			LA26_: ;
		}
	} LA1: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, parseBody__nesWh4uP9aaR2HAQTFYAzUA)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, NimStringDesc* httpVersion) {
	tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	(*client).contentTotal = IL64(0);
	(*client).contentProgress = IL64(0);
	(*client).oneSecondProgress = IL64(0);
	nimZeroMem((void*)(&T1_), sizeof(tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w));
	(*client).lastProgressReport = T1_;
	{
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T4_;
		NimStringDesc* T5_;
		T4_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
		T4_ = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_41), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T5_ = (NimStringDesc*)0;
		T5_ = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(T4_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!eqStrings(T5_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_44))) goto LA6_;
		parseChunks__LSkbNH0VA1HBcOjYrAgBmA_2(client);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA2_;
	LA6_: ;
	{
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ* contentLengthHeader;
		contentLengthHeader = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_48), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		{
			NimStringDesc* T11_;
			NI length;
			NimStringDesc* T14_;
			T11_ = (NimStringDesc*)0;
			T11_ = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(contentLengthHeader);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			if (!!(((T11_ ? T11_->Sup.len : 0) == 0))) goto LA12_;
			T14_ = (NimStringDesc*)0;
			T14_ = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(contentLengthHeader);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			length = nsuParseInt(T14_);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			(*client).contentTotal = ((NI64) (length));
			{
				NI recvLen;
				if (!(((NI) 0) < length)) goto LA17_;
				recvLen = recvFull__yQD3rUDgVn4FSoNLCDnXQQ(client, length, (*client).timeout, NIM_TRUE);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				{
					if (!(recvLen == ((NI) 0))) goto LA21_;
					close__LSkbNH0VA1HBcOjYrAgBmA(client);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_49));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA21_: ;
				{
					NimStringDesc* T27_;
					NimStringDesc* T28_;
					NimStringDesc* T29_;
					if (!!((recvLen == length))) goto LA25_;
					T27_ = (NimStringDesc*)0;
					T28_ = (NimStringDesc*)0;
					T28_ = nimIntToStr(length);
					T29_ = (NimStringDesc*)0;
					T29_ = nimIntToStr(recvLen);
					T27_ = rawNewString((T28_ ? T28_->Sup.len : 0) + (T29_ ? T29_->Sup.len : 0) + 59);
appendString(T27_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_50));
appendString(T27_, T28_);
appendString(T27_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_51));
appendString(T27_, T29_);
					httpError__QP4vBkFseuds6dKm2yqk9cw(T27_);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA25_: ;
			}
			LA17_: ;
		}
		goto LA9_;
		LA12_: ;
		{
			NIM_BOOL implicitConnectionClose;
			NIM_BOOL T31_;
			NIM_BOOL T33_;
			tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T35_;
			NimStringDesc* T36_;
			T31_ = (NIM_BOOL)0;
			T31_ = eqStrings(httpVersion, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_35));
			if (T31_) goto LA32_;
			T33_ = (NIM_BOOL)0;
			T33_ = eqStrings(httpVersion, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_34));
			if (!(T33_)) goto LA34_;
			T35_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
			T35_ = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_52), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T36_ = (NimStringDesc*)0;
			T36_ = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(T35_);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T33_ = ((T36_ ? T36_->Sup.len : 0) == 0);
			LA34_: ;
			T31_ = T33_;
			LA32_: ;
			implicitConnectionClose = T31_;
			{
				NIM_BOOL T39_;
				tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T40_;
				NimStringDesc* T41_;
				T39_ = (NIM_BOOL)0;
				T40_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
				T40_ = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_52), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				T41_ = (NimStringDesc*)0;
				T41_ = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(T40_);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				T39_ = eqStrings(T41_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_53));
				if (T39_) goto LA42_;
				T39_ = implicitConnectionClose;
				LA42_: ;
				if (!T39_) goto LA43_;
				{
					while (1) {
						NI recvLen_2;
						recvLen_2 = recvFull__yQD3rUDgVn4FSoNLCDnXQQ(client, ((NI) 4000), (*client).timeout, NIM_TRUE);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						{
							if (!!((recvLen_2 == ((NI) 4000)))) goto LA49_;
							close__LSkbNH0VA1HBcOjYrAgBmA(client);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							goto LA45;
						}
						LA49_: ;
					}
				} LA45: ;
			}
			LA43_: ;
		}
		LA9_: ;
	}
	LA2_: ;
	setPosition__cci01mizUCs1g9a9bQPBwweQ_2((*client).bodyStream, ((NI) 0));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T53_;
		NimStringDesc* T54_;
		T53_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
		T53_ = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_52), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T54_ = (NimStringDesc*)0;
		T54_ = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(T53_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!eqStrings(T54_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_53))) goto LA55_;
		close__LSkbNH0VA1HBcOjYrAgBmA(client);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA55_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, parseResponse__3AoUMM1jyrz8BUdsjBoKYQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NIM_BOOL getBody) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
	NIM_BOOL parsedStatus;
	NI linei;
	NIM_BOOL fullyRead;
	NimStringDesc* line;
	tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*) newObj((&NTI__4TQLbGMaS0XKfyPIVovh9bQ_), sizeof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA));
	parsedStatus = NIM_FALSE;
	linei = ((NI) 0);
	fullyRead = NIM_FALSE;
	line = ((NimStringDesc*) NIM_NIL);
	T1_ = (tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA*)0;
	T1_ = newHttpHeaders__m5XuFRjmtJnvrQCk25khAA(NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*result).headers = T1_;
	{
		while (1) {
			linei = ((NI) 0);
			line = recvLine__xQiPYgNz7DM0cyQl7evHRQ((*client).socket, (*client).timeout, 2, ((NI) 1000000));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			{
				if (!((line ? line->Sup.len : 0) == 0)) goto LA6_;
				close__LSkbNH0VA1HBcOjYrAgBmA(client);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				goto LA2;
			}
			LA6_: ;
			{
				if (!eqStrings(line, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9))) goto LA10_;
				fullyRead = NIM_TRUE;
				goto LA2;
			}
			LA10_: ;
			{
				NI le;
				NI T30_;
				tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T31_;
				if (!!(parsedStatus)) goto LA14_;
				le = skipIgnoreCase__Z630VYBL4pZDWlOyn05K5w(line, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_31), linei);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				{
					NimStringDesc* T20_;
					if (!(le <= ((NI) 0))) goto LA18_;
					T20_ = (NimStringDesc*)0;
					T20_ = rawNewString((line ? line->Sup.len : 0) + 24);
appendString(T20_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_32));
appendString(T20_, line);
appendString(T20_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_33));
					httpError__QP4vBkFseuds6dKm2yqk9cw(T20_);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA18_: ;
				linei += le;
				le = skipIgnoreCase__Z630VYBL4pZDWlOyn05K5w(line, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_34), linei);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				{
					if (!(((NI) 0) < le)) goto LA23_;
					(*result).version = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_34));
				}
				goto LA21_;
				LA23_: ;
				{
					le = skipIgnoreCase__Z630VYBL4pZDWlOyn05K5w(line, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_35), linei);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					{
						if (!(le <= ((NI) 0))) goto LA28_;
						httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_36));
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					LA28_: ;
					(*result).version = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_35));
				}
				LA21_: ;
				linei += le;
				T30_ = (NI)0;
				T30_ = skipWhitespace__6WuCTfsk2bOGNtGSxg9cZWAparseutils(line, linei);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				linei += T30_;
				T31_ = dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem(linei, ((NI) 1));
				(*result).status = X5BX5D___ogYTOKbgqbjPfyC123US1gsystem(line, T31_);
				parsedStatus = NIM_TRUE;
			}
			goto LA12_;
			LA14_: ;
			{
				NimStringDesc* name;
				NI le_2;
				tyObject_HSlice__EE5dzjqoOrHT6HJhIPXAvA T41_;
				NimStringDesc* T42_;
				NimStringDesc* T43_;
				name = ((NimStringDesc*) NIM_NIL);
				le_2 = parseUntil__jfFErPNXs9cw9bvuw3hS0GVAparseutils(line, (&name), 58, linei);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				{
					if (!(le_2 <= ((NI) 0))) goto LA35_;
					httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_37));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA35_: ;
				linei += le_2;
				{
					if (!!(((NU8)(line->data[linei]) == (NU8)(58)))) goto LA39_;
					httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_37));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA39_: ;
				linei += ((NI) 1);
				T41_ = dotdot___xNR8BVBMWzS9bXXNMikmyLgsystem(linei, ((NI) 1));
				T42_ = (NimStringDesc*)0;
				T42_ = X5BX5D___ogYTOKbgqbjPfyC123US1gsystem(line, T41_);
				T43_ = (NimStringDesc*)0;
				T43_ = nsuStrip(T42_, NIM_TRUE, NIM_TRUE, TM__9brjMmGFaIx4wBkLyxxXZxw_38);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				add__Iy0txpq5svlfrlKS9bU28Kw_2((*result).headers, name, T43_);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				{
					NI T46_;
					T46_ = (NI)0;
					T46_ = len__u7Y7mis1lgEx9cfeUB58mwA((*result).headers);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					if (!(((NI) 10000) < T46_)) goto LA47_;
					httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_39));
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				}
				LA47_: ;
			}
			LA12_: ;
		}
	} LA2: ;
	{
		if (!!(fullyRead)) goto LA51_;
		httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_40));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA51_: ;
	{
		NIM_BOOL T55_;
		NI T57_;
		tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw* T60_;
		T55_ = (NIM_BOOL)0;
		T55_ = getBody;
		if (!(T55_)) goto LA56_;
		T57_ = (NI)0;
		T57_ = code__74MIEFap0tx9bAcFdN6ES7Q(result);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T55_ = !((T57_ == ((NI) 204)));
		LA56_: ;
		if (!T55_) goto LA58_;
		T60_ = (tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw*)0;
		T60_ = newStringStream__9aLRtgEYeRMrZKrObtoOslQ(((NimStringDesc*) NIM_NIL));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		(*client).bodyStream = &T60_->Sup;
		(*result).bodyStream = (*client).bodyStream;
		parseBody__nesWh4uP9aaR2HAQTFYAzUA(client, (*result).headers, (*result).version);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA58_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, newConnection__OTRwNmMCrM24z6RZ2ZmLqg)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ* url) {
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		NIM_BOOL T3_;
		NIM_BOOL T4_;
		NIM_BOOL T5_;
		tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ connectionUrl;
		NIM_BOOL isSsl;
		NimStringDesc* T16_;
		NU16 port;
		tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* T39_;
		T3_ = (NIM_BOOL)0;
		T4_ = (NIM_BOOL)0;
		T5_ = (NIM_BOOL)0;
		T5_ = !(eqStrings((*client).currentURL.hostname, (*url).hostname));
		if (T5_) goto LA6_;
		T5_ = !(eqStrings((*client).currentURL.scheme, (*url).scheme));
		LA6_: ;
		T4_ = T5_;
		if (T4_) goto LA7_;
		T4_ = !(eqStrings((*client).currentURL.port, (*url).port));
		LA7_: ;
		T3_ = T4_;
		if (T3_) goto LA8_;
		T3_ = !((*client).connected);
		LA8_: ;
		if (!T3_) goto LA9_;
		nimZeroMem((void*)(&connectionUrl), sizeof(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ));
		{
			if (!((*client).proxy == 0)) goto LA13_;
			nimCopyMem((void*)(&connectionUrl), (NIM_CONST void*)url, sizeof(connectionUrl));
		}
		goto LA11_;
		LA13_: ;
		{
			nimCopyMem((void*)(&connectionUrl), (NIM_CONST void*)(&(*(*client).proxy).url), sizeof(connectionUrl));
		}
		LA11_: ;
		T16_ = (NimStringDesc*)0;
		T16_ = nsuToLowerAsciiStr(connectionUrl.scheme);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		isSsl = eqStrings(T16_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_17));
		{
			NIM_BOOL T19_;
			tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA* T23_;
			T19_ = (NIM_BOOL)0;
			T19_ = isSsl;
			if (!(T19_)) goto LA20_;
			T19_ = NIM_FALSE;
			LA20_: ;
			if (!T19_) goto LA21_;
			T23_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*)0;
			T23_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*) newObj((&NTI__a8IyoxVeydlRwzTM9aX5stg_), sizeof(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA));
			(*T23_).Sup.Sup.Sup.Sup.m_type = (&NTI__L1L9b70HFrKWeYV59a3EWeaA_);
			(*T23_).Sup.Sup.Sup.name = "HttpRequestError";
			(*T23_).Sup.Sup.Sup.message = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_18));
			(*T23_).Sup.Sup.Sup.parent = NIM_NIL;
			raiseExceptionEx((Exception*)T23_, "HttpRequestError", "newConnection", "httpclient.nim", 862);
			goto BeforeRet_;
		}
		LA21_: ;
		{
			if (!(*client).connected) goto LA26_;
			close__LSkbNH0VA1HBcOjYrAgBmA(client);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			(*client).connected = NIM_FALSE;
		}
		LA26_: ;
		{
			if (!((connectionUrl.port ? connectionUrl.port->Sup.len : 0) == 0)) goto LA30_;
			{
				if (!isSsl) goto LA34_;
				port = ((NU16) 443);
			}
			goto LA32_;
			LA34_: ;
			{
				port = ((NU16) 80);
			}
			LA32_: ;
		}
		goto LA28_;
		LA30_: ;
		{
			NI T38_;
			T38_ = (NI)0;
			T38_ = nsuParseInt(connectionUrl.port);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			port = ((NU16) (T38_));
		}
		LA28_: ;
		T39_ = (tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ*)0;
		T39_ = dial__oD5cdlP49a1aM6tVxzT4h1Q(connectionUrl.hostname, port, ((tyEnum_Protocol__dqJ1OqRGclxIMMdSLRzzXg) 6), NIM_TRUE);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		(*client).socket = T39_;
		{
			if (!isSsl) goto LA42_;
			wrapConnectedSocket__zB421aJ04hXbpUeGq3doVQ((*client).sslContext, (*client).socket, ((tyEnum_SslHandshakeType__9aZhh5f9bRDKgYB8GLASDSqg) 0), connectionUrl.hostname);
			if (NIM_UNLIKELY(*nimErr_)) goto LA44_;
			if (NIM_UNLIKELY(*nimErr_)) {
				LA44_:;
				{
					Exception* T48_;
					*nimErr_ = NIM_FALSE;
					close__dPXIsN1nx9bPvap47WTEMow((*client).socket, 2);
					if (NIM_UNLIKELY(*nimErr_)) goto LA46_;
					T48_ = (Exception*)0;
					T48_ = getCurrentException();
					raiseExceptionEx((Exception*)T48_, "Exception", "newConnection", "httpclient.nim", 891);
					goto LA46_;
					popCurrentException();
					LA46_:;
				}
			}
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA42_: ;
		{
			NIM_BOOL T51_;
			tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ connectUrl;
			NimStringDesc* proxyHeaderString;
			NimStringDesc* T60_;
			tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* T61_;
			NimStringDesc* T62_;
			tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* proxyResp;
			tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* T63_;
			T51_ = (NIM_BOOL)0;
			T51_ = eqStrings((*url).scheme, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_17));
			if (!(T51_)) goto LA52_;
			T51_ = !(((*client).proxy == 0));
			LA52_: ;
			if (!T51_) goto LA53_;
			nimZeroMem((void*)(&connectUrl), sizeof(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ));
			initUri__zcwd3ynrfDQcP9c8k9cEeg9aQ((&connectUrl));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			connectUrl.hostname = copyString((*url).hostname);
			{
				if (!!((((*url).port ? (*url).port->Sup.len : 0) == 0))) goto LA57_;
				connectUrl.port = copyString((*url).port);
			}
			goto LA55_;
			LA57_: ;
			{
				connectUrl.port = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_19));
			}
			LA55_: ;
			T60_ = (NimStringDesc*)0;
			T60_ = dollar___JcSadDOgpYarTBAbeNWqTw(((tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA) 7));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T61_ = (tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA*)0;
			T61_ = newHttpHeaders__m5XuFRjmtJnvrQCk25khAA(NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T62_ = (NimStringDesc*)0;
			T62_ = generateHeaders__BYtup6hw7Ii2LjHd19cuuhA((&connectUrl), T60_, T61_, (*client).proxy);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			proxyHeaderString = T62_;
			send__sP9af4zGpnwmZkRofZDfbQQ((*client).socket, proxyHeaderString, 2);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			T63_ = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
			T63_ = parseResponse__3AoUMM1jyrz8BUdsjBoKYQ(client, NIM_FALSE);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			proxyResp = T63_;
			{
				NIM_BOOL T66_;
				tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA* T69_;
				T66_ = (NIM_BOOL)0;
				T66_ = nsuStartsWith((*proxyResp).status, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_54));
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				if (!!(T66_)) goto LA67_;
				T69_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*)0;
				T69_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*) newObj((&NTI__a8IyoxVeydlRwzTM9aX5stg_), sizeof(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA));
				(*T69_).Sup.Sup.Sup.Sup.m_type = (&NTI__L1L9b70HFrKWeYV59a3EWeaA_);
				(*T69_).Sup.Sup.Sup.name = "HttpRequestError";
				(*T69_).Sup.Sup.Sup.message = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_55));
				(*T69_).Sup.Sup.Sup.parent = NIM_NIL;
				raiseExceptionEx((Exception*)T69_, "HttpRequestError", "newConnection", "httpclient.nim", 907);
				goto BeforeRet_;
			}
			LA67_: ;
			wrapConnectedSocket__zB421aJ04hXbpUeGq3doVQ((*client).sslContext, (*client).socket, ((tyEnum_SslHandshakeType__9aZhh5f9bRDKgYB8GLASDSqg) 0), (*url).hostname);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA53_: ;
		genericAssign((void*)(&(*client).currentURL), (void*)url, (&NTI__j49bukNPrq747O1GRd4Ng9bQ_));
		(*client).connected = NIM_TRUE;
	}
	LA9_: ;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA*, override__FtvT5N1bkQfcJQGIp9aKlhQ)(tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* fallback, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* override) {
	tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA*)0;
	{
		if (!(override == 0)) goto LA3_;
		result = fallback;
		goto BeforeRet_;
	}
	LA3_: ;
	result = newHttpHeaders__m5XuFRjmtJnvrQCk25khAA(NIM_FALSE);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	genericSeqAssign((&(*(*result).table).data), (*(*fallback).table).data, (&NTI__JiteSJxrvz63iP2o9bcn2Sg_));
	(*(*result).table).counter = (*(*fallback).table).counter;
	{
		NimStringDesc* k;
		tySequence__sM4lkSb7zS6F7OVMvW9cffQ* vs;
		NI L;
		k = (NimStringDesc*)0;
		vs = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
		L = len__J4hnoSPhc6KiK07n7KgZ9cQ((*override).table);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		{
			NI h;
			NI colontmp_;
			NI T7_;
			NI res;
			h = (NI)0;
			colontmp_ = (NI)0;
			T7_ = (((*(*override).table).data ? (*(*override).table).data->Sup.len : 0)-1);
			colontmp_ = T7_;
			res = ((NI) 0);
			{
				while (1) {
					if (!(res <= colontmp_)) goto LA9;
					h = res;
					{
						NIM_BOOL T12_;
						T12_ = (NIM_BOOL)0;
						T12_ = isFilled__5Qpmu5QqwDY0esVXn6wf7wtables((*(*override).table).data->data[h].Field0);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						if (!T12_) goto LA13_;
						k = (*(*override).table).data->data[h].Field1;
						vs = (*(*override).table).data->data[h].Field2;
						X5BX5Deq___ot6ARD7jycF5zD3Vxo4ZCw(result, k, vs);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					}
					LA13_: ;
					res += ((NI) 1);
				} LA9: ;
			}
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, sendFile__Yb9cHECVaxEDx9bEF54vo7fg)(tyObject_SocketImpl__aIhANOOoETolVz9cccNO9cRQ* socket, tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw* entry) {
	tyObject_FileStreamObj__9bEVSsOIpkY9cf5lCtaS39bPQ* file;
	NimStringDesc* buffer;
	tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* T8_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	file = newFileStream__cwYJiP3D7DOTCJxCdBqBZQ((*entry).content, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 0), ((NI) -1));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	buffer = (NimStringDesc*)0;
	{
		while (1) {
			tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ* T3_;
			T3_ = (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ*)0;
			T3_ = &file->Sup;
			buffer = readStr__Z7JDISIOZLxtyOOY7L8wDw(T3_, ((NI) 262144));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
			{
				if (!((buffer ? buffer->Sup.len : 0) == ((NI) 0))) goto LA6_;
				goto LA1;
			}
			LA6_: ;
			send__sP9af4zGpnwmZkRofZDfbQQ(socket, buffer, 2);
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
	} LA1: ;
	T8_ = (tyObject_StreamObj__THYguAi9bSgidczZ3ywEIMQ*)0;
	T8_ = &file->Sup;
	close__y1KA3B0U09bKtU09am9a9avRYQ_4(T8_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
static N_INLINE(NimStringDesc**, X5BX5D___qAX9aHx35KUFY79aX8PJ3xRgsystem)(NimStringDesc** s, NI sLen_0, NI i) {
	NimStringDesc** result;
	result = (NimStringDesc**)0;
	result = (&s[(NI)(sLen_0 - i)]);
	return result;
}
static N_INLINE(NI, find__CWgb1wQSxTCKtdHVU5pCYQsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item) {
	NI result;
{	result = (NI)0;
	result = ((NI) 0);
	{
		NimStringDesc** i;
		NI i_2;
		i = (NimStringDesc**)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				if (!(i_2 < aLen_0)) goto LA3;
				i = (&a[i_2]);
				{
					if (!eqStrings((*i), item)) goto LA6_;
					goto BeforeRet_;
				}
				LA6_: ;
				result += ((NI) 1);
				i_2 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, contains__MghwuKjQqmVLYE8A59cNGHgsystem)(NimStringDesc** a, NI aLen_0, NimStringDesc* item) {
	NIM_BOOL result;
	NI T1_;
{	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = find__CWgb1wQSxTCKtdHVU5pCYQsystem(a, aLen_0, item);
	result = (((NI) 0) <= T1_);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, requestAux__nrxBG9atKB7KhRUylZop7gA_2)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* httpMethod, NimStringDesc* body, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
	tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ requestUrl;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* data;
	tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* newHeaders;
	NimStringDesc* headerString;
	NIM_BOOL getBody;
	NIM_BOOL T50_;
	NimStringDesc* T51_;
	NIM_BOOL T52_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	nimZeroMem((void*)(&requestUrl), sizeof(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ));
	parseUri__rbZTAh57otUDsvMlWgTQog(url, (&requestUrl));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T5_;
		if (!((requestUrl.scheme ? requestUrl.scheme->Sup.len : 0) == 0)) goto LA3_;
		T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*T5_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*T5_).Sup.Sup.name = "ValueError";
		(*T5_).Sup.Sup.message = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_5));
		(*T5_).Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T5_, "ValueError", "requestAux", "httpclient.nim", 978);
		goto BeforeRet_;
	}
	LA3_: ;
	data = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	{
		NIM_BOOL T8_;
		NI T10_;
		T8_ = (NIM_BOOL)0;
		T8_ = !((multipart == NIM_NIL));
		if (!(T8_)) goto LA9_;
		T10_ = ((*multipart).content ? (*multipart).content->Sup.len : 0);
		T8_ = (((NI) 0) < T10_);
		LA9_: ;
		if (!T8_) goto LA11_;
		data = format__N4eE9a9au9cfobiXawLjYLIIw(client, multipart);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA6_;
	LA11_: ;
	{
		NimStringDesc* T14_;
		T14_ = (NimStringDesc*)0;
		T14_ = nimIntToStr((body ? body->Sup.len : 0));
		X5BX5Deq___Iy0txpq5svlfrlKS9bU28Kw((*client).headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_16), T14_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA6_: ;
	newConnection__OTRwNmMCrM24z6RZ2ZmLqg(client, (&requestUrl));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	newHeaders = override__FtvT5N1bkQfcJQGIp9aKlhQ((*client).headers, headers);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		NIM_BOOL T17_;
		NIM_BOOL T18_;
		T17_ = (NIM_BOOL)0;
		T18_ = (NIM_BOOL)0;
		T18_ = hasKey__jz0AniI5No9bnkMo9aqdkc2A(newHeaders, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_56));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T17_ = !(T18_);
		if (!(T17_)) goto LA19_;
		T17_ = (((NI) 0) < ((*client).userAgent ? (*client).userAgent->Sup.len : 0));
		LA19_: ;
		if (!T17_) goto LA20_;
		X5BX5Deq___Iy0txpq5svlfrlKS9bU28Kw(newHeaders, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_57), (*client).userAgent);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA20_: ;
	headerString = generateHeaders__BYtup6hw7Ii2LjHd19cuuhA((&requestUrl), httpMethod, newHeaders, (*client).proxy);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	send__sP9af4zGpnwmZkRofZDfbQQ((*client).socket, headerString, 2);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		NI T24_;
		NimStringDesc* buffer;
		NimStringDesc* T45_;
		NimStringDesc** T46_;
		T24_ = (data ? data->Sup.len : 0);
		if (!(((NI) 0) < T24_)) goto LA25_;
		buffer = (NimStringDesc*)0;
		{
			NI i;
			tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw entry;
			NI i_2;
			NI L;
			NI T28_;
			i = (NI)0;
			nimZeroMem((void*)(&entry), sizeof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw));
			i_2 = ((NI) 0);
			T28_ = ((*multipart).content ? (*multipart).content->Sup.len : 0);
			L = T28_;
			{
				while (1) {
					if (!(i_2 < L)) goto LA30;
					i = i_2;
					nimCopyMem((void*)(&entry), (NIM_CONST void*)(&(*multipart).content->data[i_2]), sizeof(entry));
					{
						buffer = resizeString(buffer, (data->data[i] ? data->data[i]->Sup.len : 0) + 0);
appendString(buffer, data->data[i]);
						{
							if (!!(entry.isFile)) goto LA34_;
							goto LA31;
						}
						LA34_: ;
						{
							if (!(((NI) 0) < (buffer ? buffer->Sup.len : 0))) goto LA38_;
							send__sP9af4zGpnwmZkRofZDfbQQ((*client).socket, buffer, 2);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
							buffer = setLengthStr(buffer, ((NI) 0));
						}
						LA38_: ;
						{
							if (!entry._isFile_1.isStream) goto LA42_;
							sendFile__Yb9cHECVaxEDx9bEF54vo7fg((*client).socket, (&entry));
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						goto LA40_;
						LA42_: ;
						{
							send__sP9af4zGpnwmZkRofZDfbQQ((*client).socket, entry.content, 2);
							if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						}
						LA40_: ;
						buffer = resizeString(buffer, 2);
appendString(buffer, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_9));
					} LA31: ;
					i_2 += ((NI) 1);
				} LA30: ;
			}
		}
		T45_ = (NimStringDesc*)0;
		T46_ = (NimStringDesc**)0;
		T46_ = X5BX5D___qAX9aHx35KUFY79aX8PJ3xRgsystem(data->data, (data ? data->Sup.len : 0), ((NI) 1));
		T45_ = rawNewString((buffer ? buffer->Sup.len : 0) + ((*T46_) ? (*T46_)->Sup.len : 0) + 0);
appendString(T45_, buffer);
appendString(T45_, (*T46_));
		send__sP9af4zGpnwmZkRofZDfbQQ((*client).socket, T45_, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA22_;
	LA25_: ;
	{
		if (!(((NI) 0) < (body ? body->Sup.len : 0))) goto LA48_;
		send__sP9af4zGpnwmZkRofZDfbQQ((*client).socket, body, 2);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	goto LA22_;
	LA48_: ;
	LA22_: ;
	T50_ = (NIM_BOOL)0;
	T51_ = (NimStringDesc*)0;
	T51_ = nsuToLowerAsciiStr(httpMethod);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T52_ = (NIM_BOOL)0;
	T52_ = contains__MghwuKjQqmVLYE8A59cNGHgsystem(TM__9brjMmGFaIx4wBkLyxxXZxw_58, 2, T51_);
	T50_ = !(T52_);
	if (!(T50_)) goto LA53_;
	T50_ = (*client).getBody;
	LA53_: ;
	getBody = T50_;
	result = parseResponse__3AoUMM1jyrz8BUdsjBoKYQ(client, getBody);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, redirection__7c9c0MkLRudbFZ1hPGI7gVw)(NimStringDesc* status) {
	NIM_BOOL result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NIM_BOOL)0;
	{
		NimStringDesc* i;
		NI i_2;
		i = (NimStringDesc*)0;
		i_2 = ((NI) 0);
		{
			if (!(((NI) (i_2)) <= ((NI) 4))) goto LA4_;
			{
				while (1) {
					i = copyString(redirectionNRs__RlB9c6otkMoOuxfTj3Z1QfA[(i_2)- 0]);
					{
						NIM_BOOL T10_;
						T10_ = (NIM_BOOL)0;
						T10_ = nsuStartsWith(status, i);
						if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
						if (!T10_) goto LA11_;
						result = NIM_TRUE;
						goto BeforeRet_;
					}
					LA11_: ;
					{
						if (!(((NI) 4) <= ((NI) (i_2)))) goto LA15_;
						goto LA6;
					}
					LA15_: ;
					i_2 += ((NI) 1);
				}
			} LA6: ;
		}
		LA4_: ;
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getNewLocation__zVcgYlyVeZFDopwaR9ao7Jg)(NimStringDesc* lastURL, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers) {
	NimStringDesc* result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T1_;
	tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ r;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	T1_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	T1_ = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA(headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_66), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(T1_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		if (!((result ? result->Sup.len : 0) == 0)) goto LA4_;
		httpError__QP4vBkFseuds6dKm2yqk9cw(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_67));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA4_: ;
	nimZeroMem((void*)(&r), sizeof(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ));
	parseUri__rbZTAh57otUDsvMlWgTQog(result, (&r));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		NIM_BOOL T8_;
		tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ parsed;
		T8_ = (NIM_BOOL)0;
		T8_ = ((r.hostname ? r.hostname->Sup.len : 0) == 0);
		if (!(T8_)) goto LA9_;
		T8_ = !(((r.path ? r.path->Sup.len : 0) == 0));
		LA9_: ;
		if (!T8_) goto LA10_;
		nimZeroMem((void*)(&parsed), sizeof(tyObject_Uri__j49bukNPrq747O1GRd4Ng9bQ));
		parseUri__rbZTAh57otUDsvMlWgTQog(lastURL, (&parsed));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		parsed.path = copyString(r.path);
		parsed.query = copyString(r.query);
		parsed.anchor = copyString(r.anchor);
		result = dollar___9aI7qw5xvHD3Zb9b9cJik76iw((&parsed));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA10_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, request__nrxBG9atKB7KhRUylZop7gA)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* httpMethod, NimStringDesc* body, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
	NimStringDesc* lastURL;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = contains__wAzSnEu9cCHHjvPQlWBZUeQ(url, TM__9brjMmGFaIx4wBkLyxxXZxw_3);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!!(!(T3_))) goto LA4_;
		failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_4));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA4_: ;
	result = requestAux__nrxBG9atKB7KhRUylZop7gA_2(client, url, httpMethod, body, headers, multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	lastURL = copyString(url);
	{
		NI i;
		NI colontmp_;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = ((NI) ((*client).maxRedirects));
		res = ((NI) 1);
		{
			while (1) {
				if (!(res <= colontmp_)) goto LA8;
				i = res;
				{
					NIM_BOOL T11_;
					NimStringDesc* redirectTo;
					NimStringDesc* meth;
					T11_ = (NIM_BOOL)0;
					T11_ = redirection__7c9c0MkLRudbFZ1hPGI7gVw((*result).status);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					if (!T11_) goto LA12_;
					redirectTo = getNewLocation__zVcgYlyVeZFDopwaR9ao7Jg(lastURL, (*result).headers);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					{
						if (!eqStrings((*result).status, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_64))) goto LA16_;
						meth = copyString(httpMethod);
					}
					goto LA14_;
					LA16_: ;
					{
						meth = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_68));
					}
					LA14_: ;
					result = requestAux__nrxBG9atKB7KhRUylZop7gA_2(client, redirectTo, meth, body, headers, multipart);
					if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
					lastURL = copyString(redirectTo);
				}
				LA12_: ;
				res += ((NI) 1);
			} LA8: ;
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, request__l3ySZTtQYFo8zbxxzy3QLQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA httpMethod, NimStringDesc* body, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
	NimStringDesc* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = dollar___JcSadDOgpYarTBAbeNWqTw(httpMethod);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = request__nrxBG9atKB7KhRUylZop7gA(client, url, T1_, body, headers, multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, get__SQXTd9b9cyXE8FwfJt6Pnkvg)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	result = request__l3ySZTtQYFo8zbxxzy3QLQ(client, url, ((tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA) 1), ((NimStringDesc*) NIM_NIL), NIM_NIL, NIM_NIL);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_NIMCALL(void, Marker_tyRef__k2G0qTEPEku6GckdV5VRSg)(void* p, NI op) {
	tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ* a;
	a = (tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ*)p;
	nimGCvisit((void*)(*a).url.scheme, op);
	nimGCvisit((void*)(*a).url.username, op);
	nimGCvisit((void*)(*a).url.password, op);
	nimGCvisit((void*)(*a).url.hostname, op);
	nimGCvisit((void*)(*a).url.port, op);
	nimGCvisit((void*)(*a).url.path, op);
	nimGCvisit((void*)(*a).url.query, op);
	nimGCvisit((void*)(*a).url.anchor, op);
	nimGCvisit((void*)(*a).auth, op);
}
static N_NIMCALL(void, Marker_tyRef__SUIjZnd1Y19cJUK5VjRtmJw)(void* p, NI op) {
	tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* a;
	a = (tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA*)p;
	nimGCvisit((void*)(*a).socket, op);
	nimGCvisit((void*)(*a).currentURL.scheme, op);
	nimGCvisit((void*)(*a).currentURL.username, op);
	nimGCvisit((void*)(*a).currentURL.password, op);
	nimGCvisit((void*)(*a).currentURL.hostname, op);
	nimGCvisit((void*)(*a).currentURL.port, op);
	nimGCvisit((void*)(*a).currentURL.path, op);
	nimGCvisit((void*)(*a).currentURL.query, op);
	nimGCvisit((void*)(*a).currentURL.anchor, op);
	nimGCvisit((void*)(*a).headers, op);
	nimGCvisit((void*)(*a).userAgent, op);
	nimGCvisit((void*)(*a).proxy, op);
	nimGCvisit((void*)(*a).onProgressChanged.ClE_0, op);
	nimGCvisit((void*)(*a).sslContext, op);
	nimGCvisit((void*)(*a).bodyStream, op);
}
N_LIB_PRIVATE N_NIMCALL(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA*, newHttpClient__D2qYCUvLqg9cELckn2o8LHw)(NimStringDesc* userAgent, NI maxRedirects, tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* sslContext, tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ* proxy, NI timeout, tyObject_HttpHeaderscolonObjectType___GM611pWlOrQ7hvMPcuAACA* headers) {
	tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* result;
	tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA*)0;
	result = (tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA*) newObj((&NTI__SUIjZnd1Y19cJUK5VjRtmJw_), sizeof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA));
	(*result).headers = headers;
	(*result).userAgent = copyString(userAgent);
	(*result).maxRedirects = ((NI) (maxRedirects));
	(*result).proxy = proxy;
	(*result).timeout = timeout;
	(*result).onProgressChanged.ClE_0 = TM__9brjMmGFaIx4wBkLyxxXZxw_72.ClE_0;
	(*result).onProgressChanged.ClP_0 = TM__9brjMmGFaIx4wBkLyxxXZxw_72.ClP_0;
	T1_ = (tyObject_StringStreamObj__Olau5FPRehZBBEB77FHnfw*)0;
	T1_ = newStringStream__9aLRtgEYeRMrZKrObtoOslQ(((NimStringDesc*) NIM_NIL));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*result).bodyStream = &T1_->Sup;
	(*result).getBody = NIM_TRUE;
	(*result).sslContext = sslContext;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w*, getDefaultSSL__gZuBS086zrhExFFDxdhPzA)(void) {
	tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w*)0;
	result = defaultSslContext__3GZQajZtKdLpqTTN2RjTzw;
	{
		tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w* T5_;
		if (!(result == NIM_NIL)) goto LA3_;
		T5_ = (tyObject_SslContextcolonObjectType___nNdejAl9bbVbX7sP6RJ4h0w*)0;
		T5_ = newContext__p45vOS9b3iK2JJ1Y7aIJ9bUA(((tyEnum_SslProtVersion__zq9bkhgPAE6ngdz7HLdOTDw) 3), ((tyEnum_SslCVerifyMode__t9a9cuHiKUd7w4o8XPQAbfJg) 0), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_73), ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) NIM_NIL));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		defaultSslContext__3GZQajZtKdLpqTTN2RjTzw = T5_;
		result = defaultSslContext__3GZQajZtKdLpqTTN2RjTzw;
		{
			if (!!(!((result == NIM_NIL)))) goto LA8_;
			failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_74));
			if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		}
		LA8_: ;
	}
	LA3_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ*, newProxy__Q8AkHZVLTU3rOIpbKLxNbg)(NimStringDesc* url, NimStringDesc* auth) {
	tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ* result;
	tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ*)0;
	T1_ = (tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ*)0;
	T1_ = (tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ*) newObj((&NTI__k2G0qTEPEku6GckdV5VRSg_), sizeof(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ));
	parseUri__rbZTAh57otUDsvMlWgTQog(url, (&(*T1_).url));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	(*T1_).auth = copyString(auth);
	result = T1_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, contentType__mkX1oYuRqAkh0RDJcoDCgQ_2)(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* response) {
	NimStringDesc* result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	T1_ = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	T1_ = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA((*response).headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_75), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(T1_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, contentLength__G1HIPP4uWN8SfdJYsw1lMw)(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* response) {
	NI result;
	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* contentLengthHeader;
	NimStringDesc* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NI)0;
	contentLengthHeader = getOrDefault__aSNwyYYZ2RsZRzsI4edhhA((*response).headers, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_16), TM__9brjMmGFaIx4wBkLyxxXZxw_42);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	T1_ = (NimStringDesc*)0;
	T1_ = toString__vY9b9br9btFmrOxuFGpY9cNqbQ(contentLengthHeader);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = nsuParseInt(T1_);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	{
		NIM_BOOL T4_;
		T4_ = (NIM_BOOL)0;
		T4_ = (((NI) 0) <= result);
		if (!(T4_)) goto LA5_;
		T4_ = (result <= ((NI) 2147483647));
		LA5_: ;
		if (!!(T4_)) goto LA6_;
		failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_76));
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}
	LA6_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, post__9bZaOcqleAYi4qob2S85AJQ)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* body, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
	NimStringDesc* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = dollar___JcSadDOgpYarTBAbeNWqTw(((tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA) 2));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = request__nrxBG9atKB7KhRUylZop7gA(client, url, T1_, body, NIM_NIL, multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_NIMCALL(void, Marker_tySequence__HntX7ExXXTSNL4DQEnaeTg)(void* p, NI op) {
	tySequence__HntX7ExXXTSNL4DQEnaeTg* a;
	NI T1_;
	a = (tySequence__HntX7ExXXTSNL4DQEnaeTg*)p;
	T1_ = (NI)0;
	for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
	nimGCvisit((void*)a->data[T1_].name, op);
	nimGCvisit((void*)a->data[T1_].content, op);
	switch (a->data[T1_].isFile) {
	case NIM_TRUE:
	nimGCvisit((void*)a->data[T1_]._isFile_1.filename, op);
	nimGCvisit((void*)a->data[T1_]._isFile_1.contentType, op);
	break;
	default:
	break;
	} 
	}
}
static N_NIMCALL(void, Marker_tyRef__C2BQ9bBtquATvyiqBZFy3Tg)(void* p, NI op) {
	tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* a;
	a = (tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g*)p;
	nimGCvisit((void*)(*a).content, op);
}
N_LIB_PRIVATE N_NIMCALL(void, add__HbWlMUs0iva17vWBFgglEg)(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* p, NimStringDesc* name, NimStringDesc* content, NimStringDesc* filename, NimStringDesc* contentType, NIM_BOOL useStream) {
	tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw entry;
	NI T23_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	{
		NIM_BOOL T3_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T6_;
		T3_ = (NIM_BOOL)0;
		T3_ = contains__wAzSnEu9cCHHjvPQlWBZUeQ(name, TM__9brjMmGFaIx4wBkLyxxXZxw_3);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!T3_) goto LA4_;
		T6_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		T6_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*T6_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*T6_).Sup.Sup.name = "ValueError";
		(*T6_).Sup.Sup.message = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_79));
		(*T6_).Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T6_, "ValueError", "add", "httpclient.nim", 357);
		goto BeforeRet_;
	}
	LA4_: ;
	{
		NIM_BOOL T9_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T12_;
		T9_ = (NIM_BOOL)0;
		T9_ = contains__wAzSnEu9cCHHjvPQlWBZUeQ(filename, TM__9brjMmGFaIx4wBkLyxxXZxw_3);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!T9_) goto LA10_;
		T12_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		T12_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*T12_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*T12_).Sup.Sup.name = "ValueError";
		(*T12_).Sup.Sup.message = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_80));
		(*T12_).Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T12_, "ValueError", "add", "httpclient.nim", 359);
		goto BeforeRet_;
	}
	LA10_: ;
	{
		NIM_BOOL T15_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T18_;
		T15_ = (NIM_BOOL)0;
		T15_ = contains__wAzSnEu9cCHHjvPQlWBZUeQ(contentType, TM__9brjMmGFaIx4wBkLyxxXZxw_3);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (!T15_) goto LA16_;
		T18_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		T18_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*T18_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*T18_).Sup.Sup.name = "ValueError";
		(*T18_).Sup.Sup.message = copyString(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_81));
		(*T18_).Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T18_, "ValueError", "add", "httpclient.nim", 361);
		goto BeforeRet_;
	}
	LA16_: ;
	nimZeroMem((void*)(&entry), sizeof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw));
	nimZeroMem((void*)(&entry), sizeof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw));
	entry.name = copyString(name);
	entry.content = copyString(content);
	entry.isFile = (((NI) 0) < (filename ? filename->Sup.len : 0));
	{
		if (!entry.isFile) goto LA21_;
		entry._isFile_1.isStream = useStream;
		entry._isFile_1.filename = copyString(filename);
		entry._isFile_1.contentType = copyString(contentType);
	}
	LA21_: ;
	(*p).content = (tySequence__HntX7ExXXTSNL4DQEnaeTg*) incrSeqV3((TGenericSeq*)((*p).content), (&NTI__HntX7ExXXTSNL4DQEnaeTg_));
	T23_ = (*p).content->Sup.len++;
	genericAssign((void*)(&(*p).content->data[T23_]), (void*)(&entry), (&NTI__35QV9aWmZhP0gkh6RoJTWcw_));
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g*, newMultipartData__hoeOvFpdjAVDd34aUlQaMQ)(tyTuple__UV3llMMYFckfui8YMBuUZA* xs, NI xsLen_0) {
	tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* result;
	tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g*)0;
	T1_ = (tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g*)0;
	T1_ = (tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g*) newObj((&NTI__C2BQ9bBtquATvyiqBZFy3Tg_), sizeof(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g));
	result = T1_;
	{
		tyTuple__UV3llMMYFckfui8YMBuUZA* entry;
		NI i;
		entry = (tyTuple__UV3llMMYFckfui8YMBuUZA*)0;
		i = ((NI) 0);
		{
			while (1) {
				if (!(i < xsLen_0)) goto LA4;
				entry = (&xs[i]);
				add__HbWlMUs0iva17vWBFgglEg(result, (*entry).Field0, (*entry).Field1, ((NimStringDesc*) NIM_NIL), ((NimStringDesc*) NIM_NIL), NIM_TRUE);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				i += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, put__9bZaOcqleAYi4qob2S85AJQ_2)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* body, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
	NimStringDesc* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = dollar___JcSadDOgpYarTBAbeNWqTw(((tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA) 3));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = request__nrxBG9atKB7KhRUylZop7gA(client, url, T1_, body, NIM_NIL, multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, patch__9bZaOcqleAYi4qob2S85AJQ_3)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* body, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
	NimStringDesc* T1_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	T1_ = (NimStringDesc*)0;
	T1_ = dollar___JcSadDOgpYarTBAbeNWqTw(((tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA) 8));
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = request__nrxBG9atKB7KhRUylZop7gA(client, url, T1_, body, NIM_NIL, multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, delete__SQXTd9b9cyXE8FwfJt6Pnkvg_2)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	result = request__l3ySZTtQYFo8zbxxzy3QLQ(client, url, ((tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA) 4), ((NimStringDesc*) NIM_NIL), NIM_NIL, NIM_NIL);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*, head__SQXTd9b9cyXE8FwfJt6Pnkvg_3)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*)0;
	result = request__l3ySZTtQYFo8zbxxzy3QLQ(client, url, ((tyEnum_HttpMethod__wfZHspwVKQPl9aWhkIcMrAA) 0), ((NimStringDesc*) NIM_NIL), NIM_NIL, NIM_NIL);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, dollar___ZV15HkD1bRHmQwnnvoWrNg)(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* data) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	{
		NI pos;
		tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw entry;
		NI i;
		NI L;
		NI T2_;
		pos = (NI)0;
		nimZeroMem((void*)(&entry), sizeof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw));
		i = ((NI) 0);
		T2_ = ((*data).content ? (*data).content->Sup.len : 0);
		L = T2_;
		{
			while (1) {
				NimStringDesc* T5_;
				NimStringDesc* T6_;
				NimStringDesc* T7_;
				NimStringDesc* T8_;
				NimStringDesc* T15_;
				if (!(i < L)) goto LA4;
				pos = i;
				nimCopyMem((void*)(&entry), (NIM_CONST void*)(&(*data).content->data[i]), sizeof(entry));
				T5_ = (NimStringDesc*)0;
				T6_ = (NimStringDesc*)0;
				T6_ = nimIntToStr(pos);
				T7_ = (NimStringDesc*)0;
				T7_ = nsuCenterString(T6_, ((NI) 3), 32);
				if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
				T5_ = rawNewString((T7_ ? T7_->Sup.len : 0) + 60);
appendString(T5_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_82));
appendString(T5_, T7_);
appendString(T5_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_82));
				result = resizeString(result, (T5_ ? T5_->Sup.len : 0) + 0);
appendString(result, T5_);
				T8_ = (NimStringDesc*)0;
				T8_ = rawNewString((entry.name ? entry.name->Sup.len : 0) + 8);
appendString(T8_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_83));
appendString(T8_, entry.name);
appendString(T8_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_11));
				result = resizeString(result, (T8_ ? T8_->Sup.len : 0) + 0);
appendString(result, T8_);
				{
					NimStringDesc* T13_;
					NimStringDesc* T14_;
					if (!entry.isFile) goto LA11_;
					T13_ = (NimStringDesc*)0;
					T13_ = rawNewString((entry._isFile_1.filename ? entry._isFile_1.filename->Sup.len : 0) + 14);
appendString(T13_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_12));
appendString(T13_, entry._isFile_1.filename);
appendString(T13_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_84));
					result = resizeString(result, (T13_ ? T13_->Sup.len : 0) + 0);
appendString(result, T13_);
					T14_ = (NimStringDesc*)0;
					T14_ = rawNewString((entry._isFile_1.contentType ? entry._isFile_1.contentType->Sup.len : 0) + 14);
appendString(T14_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_14));
appendString(T14_, entry._isFile_1.contentType);
					result = resizeString(result, (T14_ ? T14_->Sup.len : 0) + 0);
appendString(result, T14_);
				}
				LA11_: ;
				T15_ = (NimStringDesc*)0;
				T15_ = rawNewString((entry.content ? entry.content->Sup.len : 0) + 3);
appendString(T15_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_85));
appendString(T15_, entry.content);
appendString(T15_, ((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_86));
				result = resizeString(result, (T15_ ? T15_->Sup.len : 0) + 0);
appendString(result, T15_);
				i += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, responseContent__DKrroZapW6BixNtwAIldXw)(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* resp) {
	NimStringDesc* result;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	{
		NIM_BOOL T3_;
		NI T4_;
		NI T6_;
		tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA* T9_;
		T3_ = (NIM_BOOL)0;
		T4_ = (NI)0;
		T4_ = code__74MIEFap0tx9bAcFdN6ES7Q(resp);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T3_ = is4xx__H9bBool5Ke9ajYGN7CfPerhw(T4_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		if (T3_) goto LA5_;
		T6_ = (NI)0;
		T6_ = code__74MIEFap0tx9bAcFdN6ES7Q(resp);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		T3_ = is5xx__H9bBool5Ke9ajYGN7CfPerhw_2(T6_);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		LA5_: ;
		if (!T3_) goto LA7_;
		T9_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*)0;
		T9_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*) newObj((&NTI__a8IyoxVeydlRwzTM9aX5stg_), sizeof(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA));
		(*T9_).Sup.Sup.Sup.Sup.m_type = (&NTI__L1L9b70HFrKWeYV59a3EWeaA_);
		(*T9_).Sup.Sup.Sup.name = "HttpRequestError";
		(*T9_).Sup.Sup.Sup.message = copyString((*resp).status);
		(*T9_).Sup.Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T9_, "HttpRequestError", "responseContent", "httpclient.nim", 1074);
		goto BeforeRet_;
	}
	goto LA1_;
	LA7_: ;
	{
		result = readAll__Z3k8HYNsCnt82WLNxaYQiQ((*resp).bodyStream);
		if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
		goto BeforeRet_;
	}
	LA1_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, getContent__lWe89bib79cxIZGUQ68PwJ2w)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url) {
	NimStringDesc* result;
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* resp;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	resp = get__SQXTd9b9cyXE8FwfJt6Pnkvg(client, url);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = responseContent__DKrroZapW6BixNtwAIldXw(resp);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, postContent__rEmF36nvBenZXV25iWF0EA)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* body, tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g* multipart) {
	NimStringDesc* result;
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* resp;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	result = (NimStringDesc*)0;
	resp = post__9bZaOcqleAYi4qob2S85AJQ(client, url, body, multipart);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	result = responseContent__DKrroZapW6BixNtwAIldXw(resp);
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, fileError__QP4vBkFseuds6dKm2yqk9cw_2)(NimStringDesc* msg) {
	tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw* e;
{	e = (tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*)0;
	e = (tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw*) newObj((&NTI__HMIVdYjdZYWskTmTQVo5BQ_), sizeof(tyObject_IOError__iLZrPn9anoh9ad1MmO0RczFw));
	(*e).Sup.Sup.Sup.m_type = (&NTI__iLZrPn9anoh9ad1MmO0RczFw_);
	(*e).Sup.Sup.name = "IOError";
	(*e).Sup.Sup.message = copyString(msg);
	raiseExceptionEx((Exception*)e, "IOError", "fileError", "httpclient.nim", 314);
	goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, downloadFile__DAeTRaN9cqT3a74Lb69cF3lg)(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA* client, NimStringDesc* url, NimStringDesc* filename) {
	tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA* resp;
	tyObject_FileStreamObj__9bEVSsOIpkY9cf5lCtaS39bPQ* T2_;
NIM_BOOL* nimErr_;
{nimErr_ = nimErrorFlag();
	(*client).getBody = NIM_FALSE;
	resp = get__SQXTd9b9cyXE8FwfJt6Pnkvg(client, url);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	T2_ = (tyObject_FileStreamObj__9bEVSsOIpkY9cf5lCtaS39bPQ*)0;
	T2_ = newFileStream__cwYJiP3D7DOTCJxCdBqBZQ(filename, ((tyEnum_FileMode__ZJfK20XeZ9bv2j1pZjw9aswg) 1), ((NI) -1));
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	(*client).bodyStream = &T2_->Sup;
	{
		if (!((*client).bodyStream == 0)) goto LA5_;
		fileError__QP4vBkFseuds6dKm2yqk9cw_2(((NimStringDesc*) &TM__9brjMmGFaIx4wBkLyxxXZxw_87));
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	}
	LA5_: ;
	parseBody__nesWh4uP9aaR2HAQTFYAzUA(client, (*resp).headers, (*resp).version);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	close__y1KA3B0U09bKtU09am9a9avRYQ_4((*client).bodyStream);
	if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
	{
		NIM_BOOL T9_;
		NI T10_;
		NI T12_;
		tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA* T15_;
		T9_ = (NIM_BOOL)0;
		T10_ = (NI)0;
		T10_ = code__74MIEFap0tx9bAcFdN6ES7Q(resp);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T9_ = is4xx__H9bBool5Ke9ajYGN7CfPerhw(T10_);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		if (T9_) goto LA11_;
		T12_ = (NI)0;
		T12_ = code__74MIEFap0tx9bAcFdN6ES7Q(resp);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		T9_ = is5xx__H9bBool5Ke9ajYGN7CfPerhw_2(T12_);
		if (NIM_UNLIKELY(*nimErr_)) goto LA1_;
		LA11_: ;
		if (!T9_) goto LA13_;
		T15_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*)0;
		T15_ = (tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*) newObj((&NTI__a8IyoxVeydlRwzTM9aX5stg_), sizeof(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA));
		(*T15_).Sup.Sup.Sup.Sup.m_type = (&NTI__L1L9b70HFrKWeYV59a3EWeaA_);
		(*T15_).Sup.Sup.Sup.name = "HttpRequestError";
		(*T15_).Sup.Sup.Sup.message = copyString((*resp).status);
		(*T15_).Sup.Sup.Sup.parent = NIM_NIL;
		raiseExceptionEx((Exception*)T15_, "HttpRequestError", "downloadFile", "httpclient.nim", 1165);
		goto LA1_;
	}
	LA13_: ;
	{
		LA1_:;
	}
	{
		(*client).getBody = NIM_TRUE;
	}
	if (NIM_UNLIKELY(*nimErr_)) goto BeforeRet_;
	}BeforeRet_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, stdlib_httpclientInit000)(void) {
{

	nimRegisterThreadLocalMarker(TM__9brjMmGFaIx4wBkLyxxXZxw_2);

}
}

N_LIB_PRIVATE N_NIMCALL(void, stdlib_httpclientDatInit000)(void) {

/* section: NIM_merge_TYPE_INIT1 */
static TNimNode* TM__9brjMmGFaIx4wBkLyxxXZxw_30_5[5];
static TNimNode* TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[16];
static TNimNode* TM__9brjMmGFaIx4wBkLyxxXZxw_70_2[2];
static TNimNode* TM__9brjMmGFaIx4wBkLyxxXZxw_71_2[2];
static TNimNode* TM__9brjMmGFaIx4wBkLyxxXZxw_77_3[3];
static TNimNode* TM__9brjMmGFaIx4wBkLyxxXZxw_78_4[4];
static TNimNode TM__9brjMmGFaIx4wBkLyxxXZxw_0[42];

/* section: NIM_merge_TYPE_INIT3 */
NTI__L1L9b70HFrKWeYV59a3EWeaA_.size = sizeof(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA);
NTI__L1L9b70HFrKWeYV59a3EWeaA_.align = NIM_ALIGNOF(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA);
NTI__L1L9b70HFrKWeYV59a3EWeaA_.kind = 17;
NTI__L1L9b70HFrKWeYV59a3EWeaA_.base = (&NTI__iLZrPn9anoh9ad1MmO0RczFw_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[0].len = 0; TM__9brjMmGFaIx4wBkLyxxXZxw_0[0].kind = 2;
NTI__L1L9b70HFrKWeYV59a3EWeaA_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[0];
NTI__a8IyoxVeydlRwzTM9aX5stg_.size = sizeof(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*);
NTI__a8IyoxVeydlRwzTM9aX5stg_.align = NIM_ALIGNOF(tyObject_HttpRequestError__L1L9b70HFrKWeYV59a3EWeaA*);
NTI__a8IyoxVeydlRwzTM9aX5stg_.kind = 22;
NTI__a8IyoxVeydlRwzTM9aX5stg_.base = (&NTI__L1L9b70HFrKWeYV59a3EWeaA_);
NTI__a8IyoxVeydlRwzTM9aX5stg_.marker = Marker_tyRef__a8IyoxVeydlRwzTM9aX5stg;
NTI__83PZH4UFHIivphKu7iROCA_.size = sizeof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA);
NTI__83PZH4UFHIivphKu7iROCA_.align = NIM_ALIGNOF(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA);
NTI__83PZH4UFHIivphKu7iROCA_.kind = 18;
NTI__83PZH4UFHIivphKu7iROCA_.base = 0;
TM__9brjMmGFaIx4wBkLyxxXZxw_30_5[0] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[2];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[2].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[2].offset = offsetof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA, version);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[2].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[2].name = "version";
TM__9brjMmGFaIx4wBkLyxxXZxw_30_5[1] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[3];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[3].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[3].offset = offsetof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA, status);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[3].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[3].name = "status";
TM__9brjMmGFaIx4wBkLyxxXZxw_30_5[2] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[4];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[4].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[4].offset = offsetof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA, headers);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[4].typ = (&NTI__FbZeO4trJhT2CCJ9aLxejqw_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[4].name = "headers";
TM__9brjMmGFaIx4wBkLyxxXZxw_30_5[3] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[5];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[5].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[5].offset = offsetof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA, body);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[5].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[5].name = "body";
TM__9brjMmGFaIx4wBkLyxxXZxw_30_5[4] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[6];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[6].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[6].offset = offsetof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA, bodyStream);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[6].typ = (&NTI__1G0jiQbe7KwD5ADza5AZaw_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[6].name = "bodyStream";
TM__9brjMmGFaIx4wBkLyxxXZxw_0[1].len = 5; TM__9brjMmGFaIx4wBkLyxxXZxw_0[1].kind = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[1].sons = &TM__9brjMmGFaIx4wBkLyxxXZxw_30_5[0];
NTI__83PZH4UFHIivphKu7iROCA_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[1];
NTI__4TQLbGMaS0XKfyPIVovh9bQ_.size = sizeof(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*);
NTI__4TQLbGMaS0XKfyPIVovh9bQ_.align = NIM_ALIGNOF(tyObject_ResponsecolonObjectType___83PZH4UFHIivphKu7iROCA*);
NTI__4TQLbGMaS0XKfyPIVovh9bQ_.kind = 22;
NTI__4TQLbGMaS0XKfyPIVovh9bQ_.base = (&NTI__83PZH4UFHIivphKu7iROCA_);
NTI__4TQLbGMaS0XKfyPIVovh9bQ_.marker = Marker_tyRef__4TQLbGMaS0XKfyPIVovh9bQ;
NTI__G5GO9cu1ofZT8sZOJbdrvJQ_.size = sizeof(tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ);
NTI__G5GO9cu1ofZT8sZOJbdrvJQ_.align = NIM_ALIGNOF(tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ);
NTI__G5GO9cu1ofZT8sZOJbdrvJQ_.kind = 17;
NTI__G5GO9cu1ofZT8sZOJbdrvJQ_.base = (&NTI__iLZrPn9anoh9ad1MmO0RczFw_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[7].len = 0; TM__9brjMmGFaIx4wBkLyxxXZxw_0[7].kind = 2;
NTI__G5GO9cu1ofZT8sZOJbdrvJQ_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[7];
NTI__gCE9a0YMLE9ajJWvz01J9bheg_.size = sizeof(tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ*);
NTI__gCE9a0YMLE9ajJWvz01J9bheg_.align = NIM_ALIGNOF(tyObject_ProtocolError__G5GO9cu1ofZT8sZOJbdrvJQ*);
NTI__gCE9a0YMLE9ajJWvz01J9bheg_.kind = 22;
NTI__gCE9a0YMLE9ajJWvz01J9bheg_.base = (&NTI__G5GO9cu1ofZT8sZOJbdrvJQ_);
NTI__gCE9a0YMLE9ajJWvz01J9bheg_.marker = Marker_tyRef__gCE9a0YMLE9ajJWvz01J9bheg;
NTI__UPZdfed89aNSioeMjzFgefA_.size = sizeof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA);
NTI__UPZdfed89aNSioeMjzFgefA_.align = NIM_ALIGNOF(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA);
NTI__UPZdfed89aNSioeMjzFgefA_.kind = 18;
NTI__UPZdfed89aNSioeMjzFgefA_.base = 0;
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[0] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[9];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[9].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[9].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, socket);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[9].typ = (&NTI__MkGXUPMSENeRDS7EppfLgA_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[9].name = "socket";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[1] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[10];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[10].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[10].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, connected);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[10].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[10].name = "connected";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[2] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[11];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[11].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[11].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, currentURL);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[11].typ = (&NTI__j49bukNPrq747O1GRd4Ng9bQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[11].name = "currentURL";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[3] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[12];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[12].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[12].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, headers);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[12].typ = (&NTI__FbZeO4trJhT2CCJ9aLxejqw_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[12].name = "headers";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[4] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[13];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[13].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[13].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, maxRedirects);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[13].typ = (&NTI__hLlQjbV9bLNq5PFxYcqacsA_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[13].name = "maxRedirects";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[5] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[14];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[14].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[14].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, userAgent);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[14].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[14].name = "userAgent";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[6] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[15];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[15].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[15].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, timeout);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[15].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[15].name = "timeout";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[7] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[16];
NTI__CigKkL8U2DnJdbYRi9aI9aoQ_.size = sizeof(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ);
NTI__CigKkL8U2DnJdbYRi9aI9aoQ_.align = NIM_ALIGNOF(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ);
NTI__CigKkL8U2DnJdbYRi9aI9aoQ_.kind = 18;
NTI__CigKkL8U2DnJdbYRi9aI9aoQ_.base = 0;
NTI__CigKkL8U2DnJdbYRi9aI9aoQ_.flags = 2;
TM__9brjMmGFaIx4wBkLyxxXZxw_70_2[0] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[18];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[18].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[18].offset = offsetof(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ, url);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[18].typ = (&NTI__j49bukNPrq747O1GRd4Ng9bQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[18].name = "url";
TM__9brjMmGFaIx4wBkLyxxXZxw_70_2[1] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[19];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[19].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[19].offset = offsetof(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ, auth);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[19].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[19].name = "auth";
TM__9brjMmGFaIx4wBkLyxxXZxw_0[17].len = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[17].kind = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[17].sons = &TM__9brjMmGFaIx4wBkLyxxXZxw_70_2[0];
NTI__CigKkL8U2DnJdbYRi9aI9aoQ_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[17];
NTI__k2G0qTEPEku6GckdV5VRSg_.size = sizeof(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ*);
NTI__k2G0qTEPEku6GckdV5VRSg_.align = NIM_ALIGNOF(tyObject_ProxycolonObjectType___CigKkL8U2DnJdbYRi9aI9aoQ*);
NTI__k2G0qTEPEku6GckdV5VRSg_.kind = 22;
NTI__k2G0qTEPEku6GckdV5VRSg_.base = (&NTI__CigKkL8U2DnJdbYRi9aI9aoQ_);
NTI__k2G0qTEPEku6GckdV5VRSg_.flags = 2;
NTI__k2G0qTEPEku6GckdV5VRSg_.marker = Marker_tyRef__k2G0qTEPEku6GckdV5VRSg;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[16].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[16].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, proxy);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[16].typ = (&NTI__k2G0qTEPEku6GckdV5VRSg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[16].name = "proxy";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[8] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[20];
NTI__TSOsjF4c9aXotPerq9cEE56A_.size = sizeof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A);
NTI__TSOsjF4c9aXotPerq9cEE56A_.align = NIM_ALIGNOF(tyTuple__JfHvHzMrhKkWAUvQKe0i1A);
NTI__TSOsjF4c9aXotPerq9cEE56A_.kind = 18;
NTI__TSOsjF4c9aXotPerq9cEE56A_.base = 0;
TM__9brjMmGFaIx4wBkLyxxXZxw_71_2[0] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[22];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[22].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[22].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field0);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[22].typ = (&NTI__vr5DoT1jILTGdRlYv1OYpw_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[22].name = "Field0";
TM__9brjMmGFaIx4wBkLyxxXZxw_71_2[1] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[23];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[23].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[23].offset = offsetof(tyTuple__JfHvHzMrhKkWAUvQKe0i1A, Field1);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[23].typ = (&NTI__HsJiUUcO9cHBdUCi0HwkSTA_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[23].name = "Field1";
TM__9brjMmGFaIx4wBkLyxxXZxw_0[21].len = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[21].kind = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[21].sons = &TM__9brjMmGFaIx4wBkLyxxXZxw_71_2[0];
NTI__TSOsjF4c9aXotPerq9cEE56A_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[21];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[20].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[20].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, onProgressChanged);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[20].typ = (&NTI__TSOsjF4c9aXotPerq9cEE56A_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[20].name = "onProgressChanged";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[9] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[24];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[24].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[24].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, sslContext);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[24].typ = (&NTI__LP7l6kWJNPJLySYXWH5AYA_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[24].name = "sslContext";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[10] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[25];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[25].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[25].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, contentTotal);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[25].typ = (&NTI__Aav8dQoMlCFnZRxA0IhTHQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[25].name = "contentTotal";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[11] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[26];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[26].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[26].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, contentProgress);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[26].typ = (&NTI__Aav8dQoMlCFnZRxA0IhTHQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[26].name = "contentProgress";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[12] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[27];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[27].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[27].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, oneSecondProgress);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[27].typ = (&NTI__Aav8dQoMlCFnZRxA0IhTHQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[27].name = "oneSecondProgress";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[13] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[28];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[28].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[28].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, lastProgressReport);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[28].typ = (&NTI__FEvFMlkqJiSSGVO6HgTv8w_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[28].name = "lastProgressReport";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[14] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[29];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[29].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[29].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, bodyStream);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[29].typ = (&NTI__1G0jiQbe7KwD5ADza5AZaw_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[29].name = "bodyStream";
TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[15] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[30];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[30].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[30].offset = offsetof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA, getBody);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[30].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[30].name = "getBody";
TM__9brjMmGFaIx4wBkLyxxXZxw_0[8].len = 16; TM__9brjMmGFaIx4wBkLyxxXZxw_0[8].kind = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[8].sons = &TM__9brjMmGFaIx4wBkLyxxXZxw_69_16[0];
NTI__UPZdfed89aNSioeMjzFgefA_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[8];
NTI__SUIjZnd1Y19cJUK5VjRtmJw_.size = sizeof(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA*);
NTI__SUIjZnd1Y19cJUK5VjRtmJw_.align = NIM_ALIGNOF(tyObject_HttpClientBasecolonObjectType___UPZdfed89aNSioeMjzFgefA*);
NTI__SUIjZnd1Y19cJUK5VjRtmJw_.kind = 22;
NTI__SUIjZnd1Y19cJUK5VjRtmJw_.base = (&NTI__UPZdfed89aNSioeMjzFgefA_);
NTI__SUIjZnd1Y19cJUK5VjRtmJw_.marker = Marker_tyRef__SUIjZnd1Y19cJUK5VjRtmJw;
NTI__pa59bn7R9cBmjUm9clF5koL7g_.size = sizeof(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g);
NTI__pa59bn7R9cBmjUm9clF5koL7g_.align = NIM_ALIGNOF(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g);
NTI__pa59bn7R9cBmjUm9clF5koL7g_.kind = 18;
NTI__pa59bn7R9cBmjUm9clF5koL7g_.base = 0;
NTI__pa59bn7R9cBmjUm9clF5koL7g_.flags = 2;
NTI__35QV9aWmZhP0gkh6RoJTWcw_.size = sizeof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw);
NTI__35QV9aWmZhP0gkh6RoJTWcw_.align = NIM_ALIGNOF(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw);
NTI__35QV9aWmZhP0gkh6RoJTWcw_.kind = 18;
NTI__35QV9aWmZhP0gkh6RoJTWcw_.base = 0;
NTI__35QV9aWmZhP0gkh6RoJTWcw_.flags = 2;
TM__9brjMmGFaIx4wBkLyxxXZxw_77_3[0] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[33];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[33].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[33].offset = offsetof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw, name);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[33].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[33].name = "name";
TM__9brjMmGFaIx4wBkLyxxXZxw_77_3[1] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[34];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[34].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[34].offset = offsetof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw, content);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[34].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[34].name = "content";
TM__9brjMmGFaIx4wBkLyxxXZxw_77_3[2] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[35];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[35].kind = 3;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[35].offset = offsetof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw, isFile);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[35].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[35].name = "isFile";
TM__9brjMmGFaIx4wBkLyxxXZxw_0[35].sons = &NimDT___35QV9aWmZhP0gkh6RoJTWcw_isFile[0];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[35].len = 2;
TM__9brjMmGFaIx4wBkLyxxXZxw_78_4[0] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[37];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[37].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[37].offset = offsetof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw, _isFile_1.filename);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[37].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[37].name = "filename";
TM__9brjMmGFaIx4wBkLyxxXZxw_78_4[1] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[38];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[38].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[38].offset = offsetof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw, _isFile_1.contentType);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[38].typ = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[38].name = "contentType";
TM__9brjMmGFaIx4wBkLyxxXZxw_78_4[2] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[39];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[39].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[39].offset = offsetof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw, _isFile_1.fileSize);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[39].typ = (&NTI__Aav8dQoMlCFnZRxA0IhTHQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[39].name = "fileSize";
TM__9brjMmGFaIx4wBkLyxxXZxw_78_4[3] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[40];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[40].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[40].offset = offsetof(tyObject_MultipartEntry__35QV9aWmZhP0gkh6RoJTWcw, _isFile_1.isStream);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[40].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[40].name = "isStream";
TM__9brjMmGFaIx4wBkLyxxXZxw_0[36].len = 4; TM__9brjMmGFaIx4wBkLyxxXZxw_0[36].kind = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[36].sons = &TM__9brjMmGFaIx4wBkLyxxXZxw_78_4[0];
NimDT___35QV9aWmZhP0gkh6RoJTWcw_isFile[1] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[36];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[41].len = 0; TM__9brjMmGFaIx4wBkLyxxXZxw_0[41].kind = 2;
NimDT___35QV9aWmZhP0gkh6RoJTWcw_isFile[2] = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[41];
TM__9brjMmGFaIx4wBkLyxxXZxw_0[32].len = 3; TM__9brjMmGFaIx4wBkLyxxXZxw_0[32].kind = 2; TM__9brjMmGFaIx4wBkLyxxXZxw_0[32].sons = &TM__9brjMmGFaIx4wBkLyxxXZxw_77_3[0];
NTI__35QV9aWmZhP0gkh6RoJTWcw_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[32];
NTI__HntX7ExXXTSNL4DQEnaeTg_.size = sizeof(tySequence__HntX7ExXXTSNL4DQEnaeTg*);
NTI__HntX7ExXXTSNL4DQEnaeTg_.align = NIM_ALIGNOF(tySequence__HntX7ExXXTSNL4DQEnaeTg*);
NTI__HntX7ExXXTSNL4DQEnaeTg_.kind = 24;
NTI__HntX7ExXXTSNL4DQEnaeTg_.base = (&NTI__35QV9aWmZhP0gkh6RoJTWcw_);
NTI__HntX7ExXXTSNL4DQEnaeTg_.flags = 2;
NTI__HntX7ExXXTSNL4DQEnaeTg_.marker = Marker_tySequence__HntX7ExXXTSNL4DQEnaeTg;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[31].kind = 1;
TM__9brjMmGFaIx4wBkLyxxXZxw_0[31].offset = offsetof(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g, content);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[31].typ = (&NTI__HntX7ExXXTSNL4DQEnaeTg_);
TM__9brjMmGFaIx4wBkLyxxXZxw_0[31].name = "content";
NTI__pa59bn7R9cBmjUm9clF5koL7g_.node = &TM__9brjMmGFaIx4wBkLyxxXZxw_0[31];
NTI__C2BQ9bBtquATvyiqBZFy3Tg_.size = sizeof(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g*);
NTI__C2BQ9bBtquATvyiqBZFy3Tg_.align = NIM_ALIGNOF(tyObject_MultipartDatacolonObjectType___pa59bn7R9cBmjUm9clF5koL7g*);
NTI__C2BQ9bBtquATvyiqBZFy3Tg_.kind = 22;
NTI__C2BQ9bBtquATvyiqBZFy3Tg_.base = (&NTI__pa59bn7R9cBmjUm9clF5koL7g_);
NTI__C2BQ9bBtquATvyiqBZFy3Tg_.flags = 2;
NTI__C2BQ9bBtquATvyiqBZFy3Tg_.marker = Marker_tyRef__C2BQ9bBtquATvyiqBZFy3Tg;
}

