neon API reference NEGETSTATUS(3)
NAME
negetstatus - retrieve HTP response status for request
SYNOPSIS
#include
const nestatus *negetstatus (const nerequest *request);
DESCRIPTION
The negetstatus function returns a pointer to the HTP
status object giving the result of a request. The object re-
turned only becomes valid once the request has been success-
fully dispatched (the return value of nerequestdispatch or
nebeginrequest was zero). The object remains valid until
the associated request object is destroyed.
SEE ALSO
nestatus(3), nerequestcreate(3)
EXAMPLE
Display the response status code of applying the HEAD method
to some resource.
nerequest *req = nerequestcreate(sess, "HEAD", "/foo/bar");
if (nerequestdispatch(req))
/* handle errors... */
else
printf("Response status code was %d\n", negetstatus(req)->code);
nerequestdestroy(req);
AUTHOR
Joe Orton .
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
neon 0.25.5 Last change: 20 January 2006 1
neon API reference NEGETSTATUS(3)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWneon
Interface Stability Volatile
NOTES
Source for Neon is available on http:/opensolaris.org.
neon 0.25.5 Last change: 20 January 2006 2
|