Sun Java System Web Proxy Server 4.0.11 NSAPI Developer's Guide


The protocol_set_finfo function retrieves the content-length and last-modified date from a specified stat structure and adds them to the response headers (rq->srvhdrs). Call protocol_set_finfo before calling protocol_start_response.


int protocol_set_finfo(Session *sn, Request *rq, struct stat *finfo);


Returns REQ_PROCEED if the request can proceed normally, or REQ_ABORTED if the function should treat the request normally but not send any output to the client.


Session *sn identifies the Session structure.

Request *rq identifies the Request structure.

The Session and Request parameters are the same as the parameter passed into your SAF.

stat *finfo is the stat structure for the file.

The stat structure contains the information about the file from the file system. You can get the stat structure info using request_stat_path.

See Also

protocol_start_response, protocol_status