Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
QC_HTTPClient.dox.h
1 
2 namespace Qore {
4 
139 class HTTPClient {
140 
141 public:
143 
148 nothing clearProxyURL();
149 
150 public:
152 
159 nothing clearProxyUserPassword();
160 
161 public:
163 
170 nothing clearUserPassword();
171 
172 public:
174 
188 nothing connect();
189 
190 public:
192 
214  constructor(hash opts);
215 
216 public:
218 
223  constructor();
224 
225 public:
227 
229  copy();
230 
231 public:
233 
238  destructor();
239 
240 public:
242 
247 nothing disconnect();
248 
249 public:
251 
283 *string get(string path, *hash headers, *reference info);
284 
285 public:
287 
297 int getConnectTimeout();
298 
299 public:
301 
311 string getEncoding();
312 
313 public:
315 
325 string getHTTPVersion();
326 
327 public:
329 
339 int getMaxRedirects();
340 
341 public:
343 
353 bool getNoDelay();
354 
355 public:
357 
368 hash getPeerInfo();
369 
370 public:
372 
382 *string getProxyURL();
383 
384 public:
386 
397 *string getSSLCipherName();
398 
399 public:
401 
412 *string getSSLCipherVersion();
413 
414 public:
416 
428 
429 public:
431 
441 int getTimeout();
442 
443 public:
445 
455 string getURL();
456 
457 public:
459 
487 hash head(string path, *hash headers, *reference info);
488 
489 public:
491 
501 bool isConnected();
502 
503 public:
505 
515 bool isProxySecure();
516 
517 public:
519 
530 bool isSecure();
531 
532 public:
534 
566 *string post(string path, string body, *hash headers, *reference info);
567 
568 public:
570 
601 *string post(string path, *binary body, *hash headers, *reference info);
602 
603 public:
605 
634 hash send(string body, string method, *string path, *hash headers, softbool getbody = False, *reference info);
635 
636 public:
638 
666 hash send(*binary body, string method, string path, *hash headers, softbool getbody = False, *reference info);
667 
668 public:
670 
677 nothing setConnectTimeout(timeout timeout_ms = -1);
678 
679 public:
681 
688 nothing setEncoding(string encoding);
689 
690 public:
692 
697 nothing setEventQueue();
698 
699 public:
701 
712 nothing setEventQueue(Qore::Thread::Queue queue);
713 
714 public:
716 
725 nothing setHTTPVersion(string ver);
726 
727 public:
729 
738 nothing setMaxRedirects(softint mr = 0);
739 
740 public:
742 
759 int setNoDelay(softbool b = True);
760 
761 public:
763 
770 nothing setProxySecure(softbool b = True);
771 
772 public:
774 
781 nothing setProxyURL();
782 
783 public:
785 
795 nothing setProxyURL(string url);
796 
797 public:
799 
809 nothing setProxyUserPassword(string user, string pass);
810 
811 public:
813 
824 nothing setProxyUserPassword();
825 
826 public:
828 
839 nothing setSecure(softbool secure = True);
840 
841 public:
843 
850 nothing setTimeout(timeout timeout_ms = 0);
851 
852 public:
854 
868  setURL(string url);
869 
870 public:
872 
882 nothing setUserPassword(string user, string pass);
883 
884 public:
886 
897 nothing setUserPassword();
898 
899 public:
901 
912 *string verifyPeerCertificate();
913 };
914 };