Home | History | Annotate | Download | only in cups

Lines Matching refs:http

11  * missing or damaged, see the license at "http://www.cups.org/".
112 typedef enum http_auth_e /**** HTTP authentication types @exclude all@ ****/
123 typedef enum http_encoding_e /**** HTTP transfer encoding values ****/
127 HTTP_ENCODING_FIELDS /* Sending HTTP fields */
136 typedef enum http_encryption_e /**** HTTP encryption values ****/
151 typedef enum http_field_e /**** HTTP field names ****/
187 typedef enum http_keepalive_e /**** HTTP keep-alive values ****/
193 typedef enum http_state_e /**** HTTP state values; states
233 typedef enum http_status_e /**** HTTP status codes ****/
239 HTTP_STATUS_SWITCHING_PROTOCOLS, /* HTTP upgrade to TLS/SSL */
281 HTTP_STATUS_NOT_SUPPORTED, /* HTTP version not supported */
396 typedef enum http_version_e /**** HTTP version numbers @exclude all@ ****/
398 HTTP_VERSION_0_9 = 9, /* HTTP/0.9 */
399 HTTP_VERSION_1_0 = 100, /* HTTP/1.0 */
400 HTTP_VERSION_1_1 = 101 /* HTTP/1.1 */
437 typedef struct _http_s http_t; /**** HTTP connection type ****/
439 typedef struct http_credential_s /**** HTTP credential data @since CUPS 1.5/macOS 10.7@ @exclude all@ ****/
445 typedef int (*http_timeout_cb_t)(http_t *http, void *user_data);
446 /**** HTTP timeout callback @since CUPS 1.5/macOS 10.7@ ****/
454 extern void httpBlocking(http_t *http, int b);
455 extern int httpCheck(http_t *http);
456 extern void httpClearFields(http_t *http);
457 extern void httpClose(http_t *http);
463 extern int httpDelete(http_t *http, const char *uri);
464 extern int httpEncryption(http_t *http, http_encryption_t e);
465 extern int httpError(http_t *http);
466 extern void httpFlush(http_t *http);
467 extern int httpGet(http_t *http, const char *uri);
468 extern char *httpGets(char *line, int length, http_t *http);
471 extern const char *httpGetField(http_t *http, http_field_t field);
473 extern char *httpGetSubField(http_t *http, http_field_t field,
475 extern int httpHead(http_t *http, const char *uri);
477 extern int httpOptions(http_t *http, const char *uri);
478 extern int httpPost(http_t *http, const char *uri);
479 extern int httpPrintf(http_t *http, const char *format, ...)
481 extern int httpPut(http_t *http, const char *uri);
482 extern int httpRead(http_t *http, char *buffer, int length) _CUPS_DEPRECATED_MSG("Use httpRead2 instead.");
483 extern int httpReconnect(http_t *http) _CUPS_DEPRECATED_1_6_MSG("Use httpReconnect2 instead.");
487 extern void httpSetField(http_t *http, http_field_t field,
490 extern int httpTrace(http_t *http, const char *uri);
491 extern http_status_t httpUpdate(http_t *http);
492 extern int httpWrite(http_t *http, const char *buffer, int length) _CUPS_DEPRECATED_MSG("Use httpWrite2 instead.");
495 extern int httpGetLength(http_t *http) _CUPS_DEPRECATED_MSG("Use httpGetLength2 instead.");
503 extern void httpClearCookie(http_t *http) _CUPS_API_1_1_19;
504 extern const char *httpGetCookie(http_t *http) _CUPS_API_1_1_19;
505 extern void httpSetCookie(http_t *http, const char *cookie) _CUPS_API_1_1_19;
506 extern int httpWait(http_t *http, int msec) _CUPS_API_1_1_19;
544 extern int httpFlushWrite(http_t *http) _CUPS_API_1_2;
545 extern int httpGetBlocking(http_t *http) _CUPS_API_1_2;
547 extern int httpGetFd(http_t *http) _CUPS_API_1_2;
548 extern const char *httpGetHostname(http_t *http, char *s, int slen) _CUPS_API_1_2;
549 extern off_t httpGetLength2(http_t *http) _CUPS_API_1_2;
550 extern http_status_t httpGetStatus(http_t *http) _CUPS_API_1_2;
551 extern char *httpGetSubField2(http_t *http, http_field_t field,
554 extern ssize_t httpRead2(http_t *http, char *buffer, size_t length) _CUPS_API_1_2;
561 extern void httpSetExpect(http_t *http, http_status_t expect) _CUPS_API_1_2;
562 extern void httpSetLength(http_t *http, size_t length) _CUPS_API_1_2;
563 extern ssize_t httpWrite2(http_t *http, const char *buffer,
567 extern char *httpGetAuthString(http_t *http) _CUPS_API_1_3;
568 extern void httpSetAuthString(http_t *http, const char *scheme,
575 extern int httpCopyCredentials(http_t *http,
579 extern int httpSetCredentials(http_t *http, cups_array_t *certs)
581 extern void httpSetTimeout(http_t *http, double timeout,
589 extern http_state_t httpGetState(http_t *http) _CUPS_API_1_6;
590 extern http_version_t httpGetVersion(http_t *http) _CUPS_API_1_6;
591 extern int httpReconnect2(http_t *http, int msec, int *cancel)
611 extern const char *httpGetContentEncoding(http_t *http) _CUPS_API_1_7;
612 extern http_status_t httpGetExpect(http_t *http) _CUPS_API_1_7;
613 extern ssize_t httpPeek(http_t *http, char *buffer, size_t length)
615 extern http_state_t httpReadRequest(http_t *http, char *resource,
617 extern void httpSetDefaultField(http_t *http, http_field_t field,
619 extern http_state_t httpWriteResponse(http_t *http,
631 extern time_t httpGetActivity(http_t *http) _CUPS_API_2_0;
632 extern http_addr_t *httpGetAddress(http_t *http) _CUPS_API_2_0;
633 extern http_encryption_t httpGetEncryption(http_t *http) _CUPS_API_2_0;
634 extern http_keepalive_t httpGetKeepAlive(http_t *http) _CUPS_API_2_0;
635 extern size_t httpGetPending(http_t *http) _CUPS_API_2_0;
636 extern size_t httpGetReady(http_t *http) _CUPS_API_2_0;
637 extern size_t httpGetRemaining(http_t *http) _CUPS_API_2_0;
638 extern int httpIsChunked(http_t *http) _CUPS_API_2_0;
639 extern int httpIsEncrypted(http_t *http) _CUPS_API_2_0;
641 extern const char *httpResolveHostname(http_t *http, char *buffer, size_t bufsize) _CUPS_API_2_0;
643 extern void httpSetKeepAlive(http_t *http, http_keepalive_t keep_alive) _CUPS_API_2_0;
644 extern void httpShutdown(http_t *http) _CUPS_API_2_0;