nanoserv
[ class tree: nanoserv ] [ index: nanoserv ] [ all elements ]

Class: NS_HTTP_Service_Handler

Source Location: /handlers/NS_HTTP_Service_Handler.php

Class Overview

NS_Handler
   |
   --NS_Connection_Handler
      |
      --NS_HTTP_Service_Handler

Connection handler class


Author(s):

Variables

Constants

Methods


Child classes:

NS_SOAP_Service_Handler
SOAP 1.1 over HTTP Service handler class
NS_JSON_RPC_Service_Handler
JSON-RPC Service handler class
NS_HTTP_Async_Service_Handler
HTTP Asynchronous service handler class
NS_XML_RPC_Service_Handler
XML-RPC Service handler class

Inherited Constants

Inherited Variables

Inherited Methods

Class: NS_Connection_Handler

NS_Connection_Handler::Connect()
Connect
NS_Connection_Handler::Disconnect()
Disconnect
NS_Connection_Handler::on_Accept()
Event called on received connection
NS_Connection_Handler::on_Connect()
Event called on established connection
NS_Connection_Handler::on_Connect_Fail()
Event called on failed connection
NS_Connection_Handler::on_Disconnect()
Event called on disconnection
NS_Connection_Handler::on_Fork_Done()
Event called after forking, both on master and child processes
NS_Connection_Handler::on_Fork_Prepare()
Event called before forking
NS_Connection_Handler::on_Read()
Event called on data reception
NS_Connection_Handler::Write()
Send data over the connection
NS_Connection_Handler::Write_Stream()
Send open stream over the connection

Class: NS_Handler

NS_Handler::Set_Option()
Set a stream context option

Class Details

[line 38]
Connection handler class



Tags:

abstract:  


[ Top ]


Class Variables

$compress =  self::COMPRESS_OFF

[line 123]

Compress option



Tags:

access:  protected

Type:   int


[ Top ]

$compress_level =  3

[line 129]

Compression level



Tags:

access:  protected

Type:   int


[ Top ]

$request_content =  ""

[line 117]

Request content (raw POST data)



Tags:

access:  protected

Type:   string


[ Top ]

$request_headers = array()

[line 99]

Request headers



Tags:

access:  protected

Type:   array


[ Top ]

$request_method =  ""

[line 105]

Request method



Tags:

access:  protected

Type:   string


[ Top ]

$request_protocol =  ""

[line 111]

Request protocol



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


method Handle_Request [line 161]

void Handle_Request( $url)



Tags:

access:  protected


Overridden in child classes as:

NS_HTTP_Async_Service_Handler::Handle_Request()

Parameters:

   $url  

[ Top ]

constructor __construct [line 155]

NS_HTTP_Service_Handler __construct( )



Tags:

access:  public


Overridden in child classes as:

NS_SOAP_Service_Handler::__construct()
NS_SOAP_Service_Handler constructor
NS_Persistent_SOAP_Service_Handler::__construct()
Persistent SOAP service handler constructor
NS_Persistent_JSON_RPC_Service_Handler::__construct()
Persistent JSON-RPC server constructor
NS_Persistent_XML_RPC_Service_Handler::__construct()
Persistent XML-RPC server constructor

[ Top ]

method on_Read [line 167]

void on_Read( $data)



Tags:

access:  public


Overrides NS_Connection_Handler::on_Read() (Event called on data reception)

Parameters:

   $data  

[ Top ]


Class Constants

COMPRESS_AUTO =  1

[line 59]

Compression options


[ Top ]

COMPRESS_OFF =  2

[line 60]

Compression options


[ Top ]

DEFAULT_CONTENT_TYPE =  "text/html"

[line 53]

Default content type


[ Top ]

MAX_REQUEST_LENGTH =  1048576

[line 48]

Max request length


[ Top ]

SERVER_STRING =  ""

[line 43]

Server string


[ Top ]



Documentation generated on Thu, 10 May 2012 22:01:24 +0200 by phpDocumentor 1.4.4