diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-12 08:07:20 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-12 08:07:20 -0800 |
| commit | d87b873ea5bbdae1352b2a61f5110f20b65928cc (patch) | |
| tree | bea488ee888710a7c99705d6de18ed49e9efebb7 /src/supplemental/http/http_api.h | |
| parent | b16e6ebf05429cb4ac29b3a5a5c9758fa362c78a (diff) | |
| download | nng-d87b873ea5bbdae1352b2a61f5110f20b65928cc.tar.gz nng-d87b873ea5bbdae1352b2a61f5110f20b65928cc.tar.bz2 nng-d87b873ea5bbdae1352b2a61f5110f20b65928cc.zip | |
http: status and reason fixes (make it match docs)
Diffstat (limited to 'src/supplemental/http/http_api.h')
| -rw-r--r-- | src/supplemental/http/http_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplemental/http/http_api.h b/src/supplemental/http/http_api.h index 8ebe74bb..02b5fbe4 100644 --- a/src/supplemental/http/http_api.h +++ b/src/supplemental/http/http_api.h @@ -359,7 +359,7 @@ extern int nni_http_set_version(nng_http *conn, const char *vers); extern void nni_http_set_method(nng_http *conn, const char *method); extern const char *nni_http_get_method(nng_http *conn); -extern int nni_http_set_status( +extern void nni_http_set_status( nng_http *conn, uint16_t status, const char *reason); extern uint16_t nni_http_get_status(nng_http *); |
