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

Class: Microsoft_Http_Transport

Source Location: /Http/Transport.php

Class Overview




Author(s):

Copyright:

  • Copyright (c) 2009, RealDolmen (http://www.realdolmen.com)

Variables

Constants

Methods


Child classes:


Class Details

[line 58]


Tags:

copyright:  Copyright (c) 2009, RealDolmen (http://www.realdolmen.com)
abstract:  
license:  http://phpazure.codeplex.com/license


[ Top ]


Class Variables

$_proxyCredentials =  ''

[line 94]

Proxy credentials



Tags:

access:  protected

Type:   string


[ Top ]

$_proxyPort =  80

[line 87]

Proxy port



Tags:

access:  protected

Type:   int


[ Top ]

$_proxyUrl =  ''

[line 80]

Proxy url



Tags:

access:  protected

Type:   string


[ Top ]

$_useProxy =  false

[line 73]

Use proxy?



Tags:

access:  protected

Type:   boolean


[ Top ]

$_userAgent =  'Microsoft_Http_Transport'

[line 117]

User agent string



Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


static method createChannel [line 193]

static Microsoft_Http_Transport createChannel( [$type $type = 'Microsoft_Http_Transport_Curl'])

Create channel



Tags:

access:  public


Parameters:

$type   $type   string Transport channel type

[ Top ]

method delete [line 170]

Microsoft_Http_Response delete( $url $url, [$variables $variables = array()], [$headers $headers = array()], [$rawBody $rawBody = null])

Perform DELETE request



Tags:

access:  public


Parameters:

$url   $url   Url to request
$variables   $variables   Array of key-value pairs to use in the request
$headers   $headers   Array of key-value pairs to use as additional headers
$rawBody   $rawBody   Raw body to send to server

[ Top ]

method get [line 128]

Microsoft_Http_Response get( $url $url, [$variables $variables = array()], [$headers $headers = array()], [$rawBody $rawBody = null])

Perform GET request



Tags:

access:  public


Parameters:

$url   $url   Url to request
$variables   $variables   Array of key-value pairs to use in the request
$headers   $headers   Array of key-value pairs to use as additional headers
$rawBody   $rawBody   Raw body to send to server

[ Top ]

method post [line 156]

Microsoft_Http_Response post( $url $url, [$variables $variables = array()], [$headers $headers = array()], [$rawBody $rawBody = null])

Perform POST request



Tags:

access:  public


Parameters:

$url   $url   Url to request
$variables   $variables   Array of key-value pairs to use in the request
$headers   $headers   Array of key-value pairs to use as additional headers
$rawBody   $rawBody   Raw body to send to server

[ Top ]

method put [line 142]

Microsoft_Http_Response put( $url $url, [$variables $variables = array()], [$headers $headers = array()], [$rawBody $rawBody = null])

Perform PUT request



Tags:

access:  public


Parameters:

$url   $url   Url to request
$variables   $variables   Array of key-value pairs to use in the request
$headers   $headers   Array of key-value pairs to use as additional headers
$rawBody   $rawBody   Raw body to send to server

[ Top ]

method request [line 185]

Microsoft_Http_Response request( $httpVerb $httpVerb, $url $url, [$variables $variables = array()], [$headers $headers = array()], [$rawBody $rawBody = null])

Perform request



Tags:

abstract:  
access:  public


Overridden in child classes as:

Microsoft_Http_Transport_Curl::request()
Perform request

Parameters:

$httpVerb   $httpVerb   Http verb to use in the request
$url   $url   Url to request
$variables   $variables   Array of key-value pairs to use in the request
$headers   $headers   Array of key-value pairs to use as additional headers
$rawBody   $rawBody   Raw body to send to server

[ Top ]

method setProxy [line 104]

void setProxy( [boolean $useProxy = false], [string $proxyUrl = ''], [int $proxyPort = 80], [string $proxyCredentials = ''])

Set proxy



Tags:

access:  public


Parameters:

boolean   $useProxy   Use proxy?
string   $proxyUrl   Proxy URL
int   $proxyPort   Proxy port
string   $proxyCredentials   Proxy credentials

[ Top ]


Class Constants

VERB_DELETE =  'DELETE'

[line 64]


[ Top ]

VERB_GET =  'GET'

[line 61]

HTTP VERBS


[ Top ]

VERB_HEAD =  'HEAD'

[line 65]


[ Top ]

VERB_MERGE =  'MERGE'

[line 66]


[ Top ]

VERB_POST =  'POST'

[line 63]


[ Top ]

VERB_PUT =  'PUT'

[line 62]


[ Top ]



Documentation generated on Thu, 26 Nov 2009 08:05:40 +0100 by phpDocumentor 1.4.3