ne_get_request_target(3)

ne_get_request_target3

Retrieve request target

Usage

#include <ne_request.h>

const ne_uri *ne_get_request_target(ne_request *req);

Overview

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 Section 7.1 of RFC 9110[1] and is derived from the parameters used to create the request with ne_request_create(3) and the parameters used to create the session with ne_session_create(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.

References

1.

Section 7.1 of RFC 9110

https://www.rfc-editor.org/rfc/rfc9110.html#section-7.1

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

History

ne_get_request_target is available in neon 0.34.0 and later.

From neon 0.37.1-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.