NNG_HTTP_SERVER_DEL_HANDLER(3http)

πŸ“¦ version 1.11, in alpine 3.24

πŸ’… nng_http_server_del_handler β€” NNG Reference Manual (3http)

okay bestie, this is the delete HTTP server handler page from the NNG Reference Manual, and it’s giving β€œclean up your handler situation” energy. πŸŽ€

🌸 NAME 🌸

nng_http_server_del_handler β€” delete HTTP server handler

✨ SYNOPSIS ✨

#include <nng/nng.h>
#include <nng/supplemental/http/http.h>

int nng_http_server_del_handler(nng_http_server *s, nng_http_handler *h);

πŸ’– DESCRIPTION πŸ’–

So nng_http_server_del_handler() removes the handler h from the server instance s. iconic behavior, honestly. ✨

Heads up bestie: once a handler has been deleted from a server, it is the responsibility of the caller to dispose of the handler, or add it to another server instance. no cap, that part is on you. πŸ’…

🫢 RETURN VALUES 🫢

This function returns 0 on success, and non-zero otherwise. that’s the whole vibe. 🌈

😭 ERRORS 😭

  • NNG_ENOENT β€” Handler is not registered with server.
  • NNG_ENOTSUP β€” HTTP not supported.

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’– that’s the NNG Reference Manual page, dated 2026-01-13 β€” go be iconic with your handlers, bestie. πŸ¦‹

πŸ“¦ where this page comes from