From 8d1b52931b1d7ad8fabffe0098b9bc31c0b61a9b Mon Sep 17 00:00:00 2001
From: Garrett D'Amore <garrett@damore.org>
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.
---
 docs/man/nng_http_req_set_method.3http.adoc | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

(limited to 'docs/man/nng_http_req_set_method.3http.adoc')

diff --git a/docs/man/nng_http_req_set_method.3http.adoc b/docs/man/nng_http_req_set_method.3http.adoc
index bc80b832..9cd4f638 100644
--- a/docs/man/nng_http_req_set_method.3http.adoc
+++ b/docs/man/nng_http_req_set_method.3http.adoc
@@ -20,7 +20,7 @@ nng_http_req_set_method - set HTTP request method
 #include <nng/nng.h>
 #include <nng/supplemental/http/http.h>
 
-int nng_http_req_set_method(nng_http_req *req, const char *method);
+void nng_http_req_set_method(nng_http_req *req, const char *method);
 ----
 
 == DESCRIPTION
@@ -32,17 +32,10 @@ be upper case.
 
 The default value method for newly allocated requests is "GET".
 
-A local copy of the _method_ is made in the request _req_.
-
-== RETURN VALUES
-
-This function returns 0 on success, and non-zero otherwise.
+If the method is longer than 32 bytes, it may be silently truncated.
+(There are no methods defined that are this long.)
 
-== ERRORS
-
-[horizontal]
-`NNG_ENOMEM`:: Insufficient memory to perform the operation.
-`NNG_ENOTSUP`:: No support for HTTP in the library.
+A local copy of the _method_ is made in the request _req_.
 
 == SEE ALSO
 
-- 
cgit v1.2.3-70-g09d2

