mirror of
https://github.com/curl/curl.git
synced 2026-08-26 00:23:32 +03:00
protocol source, all about protocols and uri schemes
Add protocol.h and protocol.c containing all about libcurl's known URI schemes and their protocol handlers (so they exist). Moves the scheme definitions from the various sources files into protocol.c. Schemes are known and used, even of the protocol handler is not build or just not implemented at all. Closes #20906
This commit is contained in:
parent
32531f20f9
commit
eb14705280
42 changed files with 1089 additions and 992 deletions
15
lib/http.h
15
lib/http.h
|
|
@ -37,27 +37,16 @@ typedef enum {
|
|||
HTTPREQ_HEAD
|
||||
} Curl_HttpReq;
|
||||
|
||||
/* When redirecting transfers. */
|
||||
typedef enum {
|
||||
FOLLOW_NONE, /* not used within the function, a placeholder to allow
|
||||
initing to this */
|
||||
FOLLOW_FAKE, /* only records stuff, not actually following */
|
||||
FOLLOW_RETRY, /* set if this is a request retry as opposed to a real
|
||||
redirect following */
|
||||
FOLLOW_REDIR /* a full true redirect */
|
||||
} followtype;
|
||||
|
||||
#define CURL_HTTP_V1x (1 << 0)
|
||||
#define CURL_HTTP_V2x (1 << 1)
|
||||
#define CURL_HTTP_V3x (1 << 2)
|
||||
/* bitmask of CURL_HTTP_V* values */
|
||||
typedef unsigned char http_majors;
|
||||
|
||||
extern const struct Curl_scheme Curl_scheme_http;
|
||||
extern const struct Curl_scheme Curl_scheme_https;
|
||||
|
||||
#ifndef CURL_DISABLE_HTTP
|
||||
|
||||
extern const struct Curl_protocol Curl_protocol_http;
|
||||
|
||||
struct dynhds;
|
||||
|
||||
struct http_negotiation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue