diff --git a/include/ircd/http.h b/include/ircd/http.h index 46318a9ce..8c6d42063 100644 --- a/include/ircd/http.h +++ b/include/ircd/http.h @@ -271,12 +271,6 @@ struct ircd::http::request const string_view &content_type = {}, const vector_view & = {}, const bool &termination = true); - - // recv - request(parse::capstan &, - content *const &, - const proffer & = nullptr, - const headers::closure & = {}); }; /// Represents an HTTP request head. This is only for receiving requests. diff --git a/ircd/http.cc b/ircd/http.cc index 0301d4933..59c9fcc48 100644 --- a/ircd/http.cc +++ b/ircd/http.cc @@ -234,27 +234,6 @@ struct ircd::http::parser } const ircd::http::parser; -ircd::http::request::request(parse::capstan &pc, - content *const &c, - const proffer &proffer, - const headers::closure &headers_closure) -{ - const head h{pc, headers_closure}; - const char *const content_mark(pc.parsed); - const unwind discard_unused_content{[&pc, &h, &content_mark] - { - const size_t consumed(pc.parsed - content_mark); - const size_t remain(h.content_length - consumed); - http::content{pc, remain, content::discard}; - }}; - - if(proffer) - proffer(h); - - if(c) - *c = content{pc, h}; -} - /// Compose a request. This prints an HTTP head into the buffer. No real IO is /// done here. After composing into the buffer, the user can then drive the /// socket by sending the header and the content as specified.