logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ne_get_request_target - retrieve request target

Description

       The ne_get_request_target returns the request target URI as a pointer to an ne_uri object. The "target
       resource" of a request is defined per Section7.1ofRFC9110[1] and is derived from the parameters used
       to create the request with ne_request_create and the parameters used to create the session with
       ne_session_create.

History

ne_get_request_target is available in neon 0.34.0 and later.

Name

       ne_get_request_target - retrieve request target

References

        1. Section 7.1 of RFC 9110
           https://www.rfc-editor.org/rfc/rfc9110.html#section-7.1

neon 0.34.2                                       15 April 2025                          NE_GET_REQUEST_TARGE(3)

Return Value

       The ne_get_request_target function returns a ne_uri, or NULL if it was not possible to create the target
       URI. The latter can only occur if the path used to create the request object was not a valid URI path.
       Note that the path field of the returned object can be the empty string if the authority-form of the URI
       is used.

See Also

       ne_request_create, ne_session_create.

Synopsis

#include<ne_request.h>constne_uri*ne_get_request_target(ne_request*req);

See Also