aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-22 11:40:36 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-22 11:40:36 -0800
commit8d1b52931b1d7ad8fabffe0098b9bc31c0b61a9b (patch)
treeb6bf2966a0fa4dbabcd06bdaf0135776f11f6563 /include
parent6800bdd8b9e3fd4488bab56cd9fb12206d0631f6 (diff)
downloadnng-8d1b52931b1d7ad8fabffe0098b9bc31c0b61a9b.tar.gz
nng-8d1b52931b1d7ad8fabffe0098b9bc31c0b61a9b.tar.bz2
nng-8d1b52931b1d7ad8fabffe0098b9bc31c0b61a9b.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/nng/supplemental/http/http.h2
1 files changed, 1 insertions, 1 deletions
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