Lines Matching refs:http_t
441 typedef struct _http_s http_t; /**** HTTP connection type ****/ typedef
449 typedef int (*http_timeout_cb_t)(http_t *http, void *user_data);
458 extern void httpBlocking(http_t *http, int b);
459 extern int httpCheck(http_t *http);
460 extern void httpClearFields(http_t *http);
461 extern void httpClose(http_t *http);
462 extern http_t *httpConnect(const char *host, int port)
464 extern http_t *httpConnectEncrypt(const char *host, int port,
467 extern int httpDelete(http_t *http, const char *uri);
468 extern int httpEncryption(http_t *http, http_encryption_t e);
469 extern int httpError(http_t *http);
470 extern void httpFlush(http_t *http);
471 extern int httpGet(http_t *http, const char *uri);
472 extern char *httpGets(char *line, int length, http_t *http);
475 extern const char *httpGetField(http_t *http, http_field_t field);
477 extern char *httpGetSubField(http_t *http, http_field_t field,
479 extern int httpHead(http_t *http, const char *uri);
481 extern int httpOptions(http_t *http, const char *uri);
482 extern int httpPost(http_t *http, const char *uri);
483 extern int httpPrintf(http_t *http, const char *format, ...) _CUPS_FORMAT(2, 3);
484 extern int httpPut(http_t *http, const char *uri);
485 extern int httpRead(http_t *http, char *buffer, int length) _CUPS_DEPRECATED_MSG("Use httpRead2 in…
486 extern int httpReconnect(http_t *http) _CUPS_DEPRECATED_1_6_MSG("Use httpReconnect2 instead.");
490 extern void httpSetField(http_t *http, http_field_t field,
493 extern int httpTrace(http_t *http, const char *uri);
494 extern http_status_t httpUpdate(http_t *http);
495 extern int httpWrite(http_t *http, const char *buffer, int length) _CUPS_DEPRECATED_MSG("Use httpW…
498 extern int httpGetLength(http_t *http) _CUPS_DEPRECATED_MSG("Use httpGetLength2 instead.");
506 extern void httpClearCookie(http_t *http) _CUPS_API_1_1_19;
507 extern const char *httpGetCookie(http_t *http) _CUPS_API_1_1_19;
508 extern void httpSetCookie(http_t *http, const char *cookie) _CUPS_API_1_1_19;
509 extern int httpWait(http_t *http, int msec) _CUPS_API_1_1_19;
547 extern int httpFlushWrite(http_t *http) _CUPS_API_1_2;
548 extern int httpGetBlocking(http_t *http) _CUPS_API_1_2;
550 extern int httpGetFd(http_t *http) _CUPS_API_1_2;
551 extern const char *httpGetHostname(http_t *http, char *s, int slen) _CUPS_API_1_2;
552 extern off_t httpGetLength2(http_t *http) _CUPS_API_1_2;
553 extern http_status_t httpGetStatus(http_t *http) _CUPS_API_1_2;
554 extern char *httpGetSubField2(http_t *http, http_field_t field,
557 extern ssize_t httpRead2(http_t *http, char *buffer, size_t length) _CUPS_API_1_2;
564 extern void httpSetExpect(http_t *http, http_status_t expect) _CUPS_API_1_2;
565 extern void httpSetLength(http_t *http, size_t length) _CUPS_API_1_2;
566 extern ssize_t httpWrite2(http_t *http, const char *buffer,
570 extern char *httpGetAuthString(http_t *http) _CUPS_API_1_3;
571 extern void httpSetAuthString(http_t *http, const char *scheme,
578 extern int httpCopyCredentials(http_t *http,
582 extern int httpSetCredentials(http_t *http, cups_array_t *certs)
584 extern void httpSetTimeout(http_t *http, double timeout,
592 extern http_state_t httpGetState(http_t *http) _CUPS_API_1_6;
593 extern http_version_t httpGetVersion(http_t *http) _CUPS_API_1_6;
594 extern int httpReconnect2(http_t *http, int msec, int *cancel)
599 extern http_t *httpAcceptConnection(int fd, int blocking)
609 extern http_t *httpConnect2(const char *host, int port,
614 extern const char *httpGetContentEncoding(http_t *http) _CUPS_API_1_7;
615 extern http_status_t httpGetExpect(http_t *http) _CUPS_API_1_7;
616 extern ssize_t httpPeek(http_t *http, char *buffer, size_t length)
618 extern http_state_t httpReadRequest(http_t *http, char *resource,
620 extern void httpSetDefaultField(http_t *http, http_field_t field,
622 extern http_state_t httpWriteResponse(http_t *http,
634 extern time_t httpGetActivity(http_t *http) _CUPS_API_2_0;
635 extern http_addr_t *httpGetAddress(http_t *http) _CUPS_API_2_0;
636 extern http_encryption_t httpGetEncryption(http_t *http) _CUPS_API_2_0;
637 extern http_keepalive_t httpGetKeepAlive(http_t *http) _CUPS_API_2_0;
638 extern size_t httpGetPending(http_t *http) _CUPS_API_2_0;
639 extern size_t httpGetReady(http_t *http) _CUPS_API_2_0;
640 extern size_t httpGetRemaining(http_t *http) _CUPS_API_2_0;
641 extern int httpIsChunked(http_t *http) _CUPS_API_2_0;
642 extern int httpIsEncrypted(http_t *http) _CUPS_API_2_0;
644 extern const char *httpResolveHostname(http_t *http, char *buffer, size_t bufsize) _CUPS_API_2_0;
646 extern void httpSetKeepAlive(http_t *http, http_keepalive_t keep_alive) _CUPS_API_2_0;
647 extern void httpShutdown(http_t *http) _CUPS_API_2_0;