diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-08-15 12:40:06 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-08-15 12:40:06 +0000 |
commit | ffefedefa9543f9bbdbf7d93a8a66fe4a6b96a2f (patch) | |
tree | bd98d9743a29ee7a70bf9b17981a1e311212d435 /src/htslib.h | |
parent | 84cdc70b4a00a7a2938ff8f3c782cfd78ab069b8 (diff) |
Added %a option, allowing to define the "Accept:" header line.
Added %X option, to define additional request header lines.
Cleaned up a bit the messy strcat everywhere in the request section (yuk).
Diffstat (limited to 'src/htslib.h')
-rw-r--r-- | src/htslib.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/htslib.h b/src/htslib.h index 521ff3b..f1abc90 100644 --- a/src/htslib.h +++ b/src/htslib.h @@ -102,9 +102,9 @@ typedef struct htsrequest_proxy htsrequest_proxy; #endif struct htsrequest_proxy { int active; - char name[1024]; + const char* name; int port; - char bindhost[256]; // bind this host + const char* bindhost; // bind this host }; #ifndef HTS_DEF_FWSTRUCT_htsrequest @@ -118,10 +118,12 @@ struct htsrequest { short int range_used; // Range utilisé short int nocompression; // Pas de compression short int flush_garbage; // recycled - char user_agent[128]; - char referer[256]; - char from[256]; - char lang_iso[64]; + const char* user_agent; + const char* referer; + const char* from; + const char* lang_iso; + const char* accept; + const char* headers; htsrequest_proxy proxy; // proxy }; @@ -162,7 +164,7 @@ struct htsblk { SSL *ssl_con; // connection structure #endif char lastmodified[64]; // Last-Modified - char etag[64]; // Etag + char etag[256]; // Etag char cdispo[256]; // Content-Disposition coupé LLint crange; // Content-Range LLint crange_start; // Content-Range |