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

Class: HTTP_Server_Request

Source Location: /HTTP_Server-0.4.1/HTTP/Server/Request.php

Class Overview


HTTP_Server_Request


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
HTTP_Server_Request

Interface that parses the request



[ Top ]


Class Variables

$content =  ''

[line 83]

the data (like POST) sent after the headers
  • Access: public

Type:   string


[ Top ]

$headers = array()

[line 76]

headers
  • Access: public

Type:   array


[ Top ]

$method =

[line 36]

method
  • Access: public

Type:   string


[ Top ]

$path_info =

[line 60]

path info
  • Access: public

Type:   string


[ Top ]

$protocol =

[line 44]

protocol
  • Access: public

Type:   string


[ Top ]

$query_string =

[line 68]

query string
  • Access: public

Type:   string


[ Top ]

$uri =

[line 52]

uri
  • Access: public

Type:   string


[ Top ]



Method Detail

export   [line 192]

void export( )

Exports server variables based on request data

like _GET, _SERVER[HTTP_*] and so The function can be used to make your own HTTP server act more than a "real" one (like apache)

  • Access: public

[ Top ]

getMethod   [line 148]

string getMethod( )

get the request method
  • Access: public

[ Top ]

getPathInfo   [line 159]

string getPathInfo( )

get path info
  • Access: public

[ Top ]

parse   [line 93]

array &parse( string $request)

parse a http request
  • Return: parsed request
  • Access: public

Parameters:

string   $request   —  raw request data

[ Top ]

_parsePath   [line 171]

array _parsePath( string $path)

parse a request uri
  • Return: path data
  • Access: public

Parameters:

string   $path   —  uri to parse

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.