IOMux::HTTP - HTTP protocol on IOMux
IOMux::HTTP
is a IOMux::Net::TCP
is a IOMux::Handler::Read
is a IOMux::Handler
IOMux::Net::TCP also extends IOMux::Handler::Write
is a IOMux::Handler::Write
is a IOMux::Handler
IOMux::HTTP is extended by
IOMux::HTTP::Client
IOMux::HTTP::Service
# base-class for IOMux::HTTP::Service or Client
- IOMux::HTTP->new(OPTIONS)
-
-Option --Defined in --Default
add_headers []
fh IOMux::Handler <required>
name IOMux::Handler 'tcp $host:$port'
read_size IOMux::Handler::Read 32768
socket IOMux::Net::TCP <required>
write_size IOMux::Handler::Write 4096
- add_headers => ARRAY
-
These headers will be added to each message sent. The parameter is an ARRAY of field-name/field-content pairs.
- fh => FILEHANDLE
-
- name => STRING
-
- read_size => INTEGER
-
- socket => IO::Socket::INET
-
- write_size => INTEGER
- IOMux::HTTP->open(MODE, WHAT, OPTIONS) See "Constructors" in IOMux::Handler
-
- IOMux::HTTP->open(MODE, WHAT, OPTIONS) See "Constructors" in IOMux::Handler
- $obj->fh See "Accessors" in IOMux::Handler
-
- $obj->fh See "Accessors" in IOMux::Handler
-
- $obj->fileno See "Accessors" in IOMux::Handler
-
- $obj->fileno See "Accessors" in IOMux::Handler
-
- $obj->mux See "Accessors" in IOMux::Handler
-
- $obj->mux See "Accessors" in IOMux::Handler
-
- $obj->name See "Accessors" in IOMux::Handler
-
- $obj->name See "Accessors" in IOMux::Handler
-
- $obj->readSize([INTEGER]) See "Accessors" in IOMux::Handler::Read
-
- $obj->socket See "Accessors" in IOMux::Net::TCP
-
- $obj->startTime
-
Returns a HASH with some basic information about the client, not the socket itself.
- $obj->usesSSL See "Accessors" in IOMux::Handler
-
- $obj->usesSSL See "Accessors" in IOMux::Handler
-
- $obj->writeSize([INTEGER]) See "Accessors" in IOMux::Handler::Write
- $obj->close([CALLBACK]) See "Connection" in IOMux::Handler
-
- $obj->close([CALLBACK]) See "Connection" in IOMux::Handler
-
- $obj->shutdown((0|1|2)) See "Connection" in IOMux::Net::TCP
-
- $obj->timeout([TIMEOUT]) See "Connection" in IOMux::Handler
-
- $obj->timeout([TIMEOUT]) See "Connection" in IOMux::Handler
- $obj->readline(CALLBACK) See "Reading" in IOMux::Handler::Read
-
- $obj->slurp(CALLBACK) See "Reading" in IOMux::Handler::Read
- $obj->print(STRING|SCALAR|LIST|ARRAY) See "Writing" in IOMux::Handler::Write
-
- $obj->printf(FORMAT, PARAMS) See "Writing" in IOMux::Handler::Write
-
- $obj->say(STRING|SCALAR|LIST|ARRAY) See "Writing" in IOMux::Handler::Write
-
- $obj->write(SCALAR, [MORE]) See "Writing" in IOMux::Handler::Write
- $obj->mux_init(MUX, [HANDLER]) See "Connection" in IOMux::Handler
-
- $obj->mux_init(MUX, [HANDLER]) See "Connection" in IOMux::Handler
-
- $obj->mux_remove See "Connection" in IOMux::Handler
-
- $obj->mux_remove See "Connection" in IOMux::Handler
-
- $obj->mux_timeout See "Connection" in IOMux::Handler
-
- $obj->mux_timeout See "Connection" in IOMux::Handler
- $obj->mux_eof See "Multiplexer" in IOMux::Net::TCP
-
- $obj->mux_except_flagged(FILENO) See "Reading" in IOMux::Handler
-
- $obj->mux_except_flagged(FILENO) See "Reading" in IOMux::Handler
-
- $obj->mux_input(BUFFER) See "Reading" in IOMux::Handler::Read
-
- $obj->mux_read_flagged(FILENO) See "Reading" in IOMux::Handler
-
- $obj->mux_read_flagged(FILENO) See "Reading" in IOMux::Handler
- $obj->mux_outbuffer_empty See "Writing" in IOMux::Handler::Write
-
- $obj->mux_output_waiting See "Writing" in IOMux::Handler::Write
-
- $obj->mux_write_flagged(FILENO) See "Writing" in IOMux::Handler
-
- $obj->mux_write_flagged(FILENO) See "Writing" in IOMux::Handler
- $obj->extractSocket(HASH)
-
- IOMux::HTTP->extractSocket(HASH) See "Helpers" in IOMux::Handler
-
- $obj->extractSocket(HASH)
-
- IOMux::HTTP->extractSocket(HASH) See "Helpers" in IOMux::Handler
-
- $obj->fdset(STATE, READ, WRITE, ERROR) See "Helpers" in IOMux::Handler
-
- $obj->fdset(STATE, READ, WRITE, ERROR) See "Helpers" in IOMux::Handler
-
- $obj->show See "Helpers" in IOMux::Handler
-
- $obj->show See "Helpers" in IOMux::Handler
- $obj->closeConnection
-
- $obj->sendMessage(MESSAGE, CALLBACK)
-
Used by sendRequest() (client) and sendResponse() (server) to send a MESSAGE. When the message has arrived, the CALLBACK will we called.
This module is part of IOMux-HTTP distribution version 0.11, built on January 27, 2011. Website: http://perl.overmeer.net/ All modules in this suite: "Any::Daemon", "IOMux", and "IOMux::HTTP".
Please post questions or ideas to perl@overmeer.net
Copyrights 2011 by Mark Overmeer. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://www.perl.com/perl/misc/Artistic.html