Because FreeBSD 14 kidnapped the name.
Ref: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271526
Fixes #11163
Closes #11164
struct Curl_cfilter *cf,
struct Curl_easy *data,
nghttp2_session *h2,
- struct http_req *req,
+ struct httpreq *req,
const nghttp2_priority_spec *pri_spec,
void *stream_user_data,
nghttp2_data_source_read_callback read_callback,
{
struct cf_h2_proxy_ctx *ctx = cf->ctx;
CURLcode result;
- struct http_req *req = NULL;
+ struct httpreq *req = NULL;
infof(data, "Establish HTTP/2 proxy tunnel to %s", ts->authority);
return copy;
}
-CURLcode Curl_http_req_make(struct http_req **preq,
+CURLcode Curl_http_req_make(struct httpreq **preq,
const char *method, size_t m_len,
const char *scheme, size_t s_len,
const char *authority, size_t a_len,
const char *path, size_t p_len)
{
- struct http_req *req;
+ struct httpreq *req;
CURLcode result = CURLE_OUT_OF_MEMORY;
DEBUGASSERT(method);
return result;
}
-static CURLcode req_assign_url_authority(struct http_req *req, CURLU *url)
+static CURLcode req_assign_url_authority(struct httpreq *req, CURLU *url)
{
char *user, *pass, *host, *port;
struct dynbuf buf;
return result;
}
-static CURLcode req_assign_url_path(struct http_req *req, CURLU *url)
+static CURLcode req_assign_url_path(struct httpreq *req, CURLU *url)
{
char *path, *query;
struct dynbuf buf;
return result;
}
-CURLcode Curl_http_req_make2(struct http_req **preq,
+CURLcode Curl_http_req_make2(struct httpreq **preq,
const char *method, size_t m_len,
CURLU *url, const char *scheme_default)
{
- struct http_req *req;
+ struct httpreq *req;
CURLcode result = CURLE_OUT_OF_MEMORY;
CURLUcode uc;
return result;
}
-void Curl_http_req_free(struct http_req *req)
+void Curl_http_req_free(struct httpreq *req)
{
if(req) {
free(req->scheme);
}
CURLcode Curl_http_req_to_h2(struct dynhds *h2_headers,
- struct http_req *req, struct Curl_easy *data)
+ struct httpreq *req, struct Curl_easy *data)
{
const char *scheme = NULL, *authority = NULL;
struct dynhds_entry *e;
/**
* All about a core HTTP request, excluding body and trailers
*/
-struct http_req {
+struct httpreq {
char method[12];
char *scheme;
char *authority;
/**
* Create a HTTP request struct.
*/
-CURLcode Curl_http_req_make(struct http_req **preq,
+CURLcode Curl_http_req_make(struct httpreq **preq,
const char *method, size_t m_len,
const char *scheme, size_t s_len,
const char *authority, size_t a_len,
const char *path, size_t p_len);
-CURLcode Curl_http_req_make2(struct http_req **preq,
+CURLcode Curl_http_req_make2(struct httpreq **preq,
const char *method, size_t m_len,
CURLU *url, const char *scheme_default);
-void Curl_http_req_free(struct http_req *req);
+void Curl_http_req_free(struct httpreq *req);
#define HTTP_PSEUDO_METHOD ":method"
#define HTTP_PSEUDO_SCHEME ":scheme"
* @param data the handle to lookup defaults like ' :scheme' from
*/
CURLcode Curl_http_req_to_h2(struct dynhds *h2_headers,
- struct http_req *req, struct Curl_easy *data);
+ struct httpreq *req, struct Curl_easy *data);
/**
* All about a core HTTP response, excluding body and trailers
#define H1_PARSE_DEFAULT_MAX_LINE_LEN (8 * 1024)
struct h1_req_parser {
- struct http_req *req;
+ struct httpreq *req;
struct bufq scratch;
size_t scratch_skip;
const char *line;
const char *scheme_default, int options,
CURLcode *err);
-CURLcode Curl_h1_req_dprint(const struct http_req *req,
+CURLcode Curl_h1_req_dprint(const struct httpreq *req,
struct dynbuf *dbuf);