PHP WebSocket2 Library
PHP5 Library for browsing web
|
HTTP content attachment class. More...
Public Member Functions | |
__construct ($filename, $contents) | |
Constructor. More... | |
writeTo (HttpSocket $socket) | |
getSize () | |
Public Member Functions inherited from HttpAttachment | |
__construct ($filename) | |
Constructor. More... | |
setFilename ($filename) | |
Sets attachment file name. More... | |
setContentType ($content_type) | |
Sets attachment content-type. More... | |
getFilename () | |
Returns attachment file name. More... | |
getContentType () | |
Returns attachment content-type. More... | |
writeTo (HttpSocket $socket) | |
Writes raw attachment data to HttpSocket $socket. More... | |
getSize () | |
Returns attachment size in bytes. More... | |
HTTP content attachment class.
__construct | ( | $filename, | |
$contents | |||
) |
Constructor.
string | $filename | Attachment file name (this will be sent over HTTP) |
string | $contents | Attachment contents |