Skip to content

Commit

Permalink
docs: update http docs for nng_http_status
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Jan 12, 2025
1 parent d6de9be commit 1b1f460
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/ref/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ there is little need to use this, but there are some subtle semantic differences
### HTTP Status
```c
uint16_t nng_http_get_status(nng_http *conn);
typedef enum ... nng_http_status;
nng_http_status nng_http_get_status(nng_http *conn);
const char *nng_http_get_reason(nng_http_conn *conn);
void nng_http_set_status(nng_http *conn, uint16_t status, const char *reason);
void nng_http_set_status(nng_http *conn, nng_http_status status, const char *reason);
```

The {{i:`nng_http_get_status`}} function obtains the numeric code (typipcally numbered from 100 through 599) returned
Expand Down

0 comments on commit 1b1f460

Please sign in to comment.