NE_HAS_SUPPORT(3)

✨ NE_HAS_SUPPORT ✨

okay so bestie, this is the neon API reference page for ne_has_support, and it's literally the "does my build even have this??" function πŸ’…


🌸 NAME 🌸

ne_has_support β€” determine feature support status πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <ne_utils.h>

int ne_has_support(int feature);

πŸ’– DESCRIPTION πŸ’–

The ne_has_support function is your little vibe check for the library itself πŸ”₯ You pass it a feature code (feature) and it tells you whether that particular optional feature is supported. So iconic of it.

Here are all the feature codes you can ask about, no cap:

  • NE_FEATURE_SSL β€” Indicates support for SSL/TLS πŸ”’
  • NE_FEATURE_ZLIB β€” Indicates support for compressed responses (smaller = cuter fr)
  • NE_FEATURE_IPV6 β€” Indicates support for IPv6 🌈
  • NE_FEATURE_LFS β€” Indicates support for large files
  • NE_FEATURE_SOCKS β€” Indicates support for SOCKSv5 🧦
  • NE_FEATURE_TS_SSL β€” Indicates support for thread-safe SSL initialization β€” see ne_sock_init(3)
  • NE_FEATURE_GSSAPI β€” Indicates support for Negotiate authentication via GSSAPI
  • NE_FEATURE_LIBPXY β€” Indicates support for libproxy (in ne_session_system_proxy(3))
  • NE_FEATURE_NTLM β€” Indicates support for NTLM authentication via Libntlm

That's the whole list, nine of them, count 'em πŸ’€

⭐ RETURN VALUE ⭐

ne_has_support returns non-zero if the given feature is supported β€” meaning yes bestie, you're so back 🫢 β€” or zero otherwise (it's giving unsupported, sorry 😭).

πŸ•°οΈ HISTORY πŸ•°οΈ

Some of these constants are new-ish, so keep an eye out:

  • The NE_FEATURE_GSSAPI and NE_FEATURE_LIBPXY constants are only available in neon 0.34.0 and newer.
  • The NE_FEATURE_NTLM is only available in neon 0.37.0 and newer.
lowkey important: if you're on an older neon, those constants straight up won't exist. not a vibe, just a fact πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

ne_version_match(3), ne_sock_init(3)

Copyright Β© 2001-2026 Joe Orton


and that's the page, bestie!! πŸŽ€βœ¨ this lil gem is from the neon manual, dated 03/20/2026 β€” go forth and feature-check responsibly πŸ’œπŸ¦‹

πŸ“¦ where this page comes from