|
|
|
NAME
http_file_answer()
LIBRARY
Caudiumlib.
SYNOPSIS inherit "caudiumlib"; mapping http_file_answer(object fd, void|string type, void|int len); DESCRIPTION
Return a response mapping with the specified file descriptor using the
specified content type and length.
object fd
The file descriptor object. This can be an ordinary file, a socket, etc..
void|string type
Optional file type, like text/html or application/octet-stream. Defaulting to text/html.
void|int len
The option number of bytes of date to read from the object. The default
is to read until EOF.
RETURNS
The HTTP response mapping.
|
|
Copyright © 2000 - 2005
The Caudium Group
All Rights Reserved. Hosting by Kazar.
|
|