Rudiments
url.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_URL_H
5#define RUDIMENTS_URL_H
6
7#include <rudiments/private/urlincludes.h>
8
35class RUDIMENTS_DLLSPEC url : public file {
36 public:
37
39 url();
40
42 virtual ~url();
43
53
57
66
70
74 void setHttpPostData(const char *data, uint64_t size);
75
78 const char *getHttpPostData();
79
83
90 void setHttpUserAgent(const char *useragent);
91
94 const char *getHttpUserAgent();
95
106 void setHttpHeaders(const char *headers);
107
110 const char *getHttpHeaders();
111
115
119
122 void setCertificateAuthority(const char *ca);
123
127
131 const char *getError();
132
135 static bool supportsProtocol(const char *protocol);
136
137 #include <rudiments/private/url.h>
138};
139
140#endif
Definition avltree.h:11
Definition file.h:19
Definition url.h:35
virtual ~url()
const char * getHttpUserAgent()
bool getUseHttpPost()
void setHttpUserAgent(const char *useragent)
static bool supportsProtocol(const char *protocol)
const char * getHttpPostData()
void setHttpPostData(const char *data, uint64_t size)
const char * getHttpPostContentType()
uint64_t getHttpPostDataSize()
const char * getError()
void setUseHttpPost(bool usehttppost)
const char * getHttpHeaders()
const char * getCertificateAuthority()
void setHttpHeaders(const char *headers)
void setHttpPostContentType(const char *contenttype)
void setCertificateAuthority(const char *ca)
void setValidatePeer(bool validatepeer)
bool getValidatePeer()