From 8d1b52931b1d7ad8fabffe0098b9bc31c0b61a9b Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Dec 2024 11:40:36 -0800 Subject: http: method on request structure is now static This saves yet another allocation. It also no longer returns a value making this a breaking change. --- include/nng/supplemental/http/http.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/nng/supplemental/http/http.h b/include/nng/supplemental/http/http.h index bb163949..8cceae9e 100644 --- a/include/nng/supplemental/http/http.h +++ b/include/nng/supplemental/http/http.h @@ -136,7 +136,7 @@ NNG_DECL const char *nng_http_req_get_header( // nng_http_req_set_method is used to change the method of a request. // The method should be an upper case HTTP method, like POST, or DELETE. // Null sets the default ("GET"). -NNG_DECL int nng_http_req_set_method(nng_http_req *, const char *); +NNG_DECL void nng_http_req_set_method(nng_http_req *, const char *); // nng_http_req_set_version is used to change the version of a request. // Normally the version is "HTTP/1.1". Note that the framework does -- cgit v1.2.3-70-g09d2