NE_GET_REQUEST_TARGE(3)
π NE_GET_REQUEST_TARGE(3) π
ok so this is a page from the neon API reference, and honestly? it's a lil one but it's important, bestie. stay with me.
β¨ NAME β¨
ne_get_request_target β retrieve request target π―
π¦ SYNOPSIS π¦
#include <ne_request.h>
const ne_uri *ne_get_request_target(ne_request *req);
like, that's it. that's the whole vibe. one function, one pointer, no drama. π«Ά
πΈ DESCRIPTION πΈ
okay so ne_get_request_target returns the request target URI, and it hands it back to you as a pointer to an ne_uri object. cute, right? π
now the "target resource" of a request β that's a real official concept, defined per Section 7.1 of RFC 9110[1], no cap. and the way it gets derived is: it comes from the parameters you used to create the request with ne_request_create(3), plus the parameters you used to create the session with ne_session_create(3). so like, both of those things feed into it. it's giving collaborative. β¨
π RETURN VALUE π
the function returns an ne_uri, or NULL if it wasn't possible to create the target URI. π and lowkey, that NULL case can only happen if the path you used to create the request object was not a valid URI path. so like, if you see a NULL, check your path, bestie.
β οΈ also heads up: the path field of the returned object can be the empty string if the authority-form of the URI is used. that's not a bug, that's just how it is. don't come for me. π
π HISTORY π
ne_get_request_target is available in neon 0.34.0 and later. so if you're on something ancient, that's a you problem, upgrade era. π
π¦ SEE ALSO π¦
go read those too, iykyk. π
π COPYRIGHT π
Copyright Β© 2001-2026 Joe Orton
β REFERENCES β
- Section 7.1 of RFC 9110 https://www.rfc-editor.org/rfc/rfc9110.html#section-7.1
and that's the whole page, bestie!! π this lil slice of the neon manual is from the 03/20/2026 drop, and it's literally iconic. slay, bye! π β¨
π¦ where this page comes from
- arch rolling: neon 0.37.1-1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms