NSAPI Functions (in Alphabetical Order)
172
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Example
/* A noaction response from this function means the request was HEAD
*/
if (protocol_start_response(sn, rq) == REQ_NOACTION) {
filebuf_close(groupbuf);
/* close our file*/
return REQ_PROCEED;
}
See also
protocol_status
protocol_status
The
protocol_status
function sets the session status to indicate whether an error
condition occurred. If the reason string is NULL, the server attempts to find a
reason string for the given status code. If it finds none, it returns “
Unknown
reason.
” The reason string is sent to the client in the HTTP response line. Use this
function to set the status of the response before calling the function
protocol_start_response
.
For the complete list of valid status code constants, please refer to the file
"
nsapi.h
" in the server distribution
Syntax
void protocol_status(Session *sn, Request *rq, int n, char *r);
Returns
void
, but it sets values in the Session/Request designated by
sn
/
rq
for the status
code and the reason string
Parameters
Session *sn
is the Session.
Request *rq
is the Request.
The
Session
and
Request
parameters are the same as the ones passed into your
SAF.
int n
is one of the status code constants above.
char *r
is the reason string.
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...