Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
1b7f2489
Commit
1b7f2489
authored
Oct 11, 2011
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uppercased HTTP methods
parent
c5a65053
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
library/Solarium/Client/Request.php
library/Solarium/Client/Request.php
+10
-10
No files found.
library/Solarium/Client/Request.php
View file @
1b7f2489
...
...
@@ -48,21 +48,21 @@ class Solarium_Client_Request extends Solarium_Configurable
/**
* Request GET method
*/
const
METHOD_GET
=
'
get
'
;
const
METHOD_GET
=
'
GET
'
;
/**
* Request POST method
*/
const
METHOD_POST
=
'
post
'
;
const
METHOD_POST
=
'
POST
'
;
/**
* Request HEAD method
*/
const
METHOD_HEAD
=
'
head
'
;
const
METHOD_HEAD
=
'
HEAD
'
;
/**
* Default options
*
*
* @var array
*/
protected
$_options
=
array
(
...
...
@@ -73,7 +73,7 @@ class Solarium_Client_Request extends Solarium_Configurable
* Request headers
*/
protected
$_headers
=
array
();
/**
* Request params
*
...
...
@@ -202,7 +202,7 @@ class Solarium_Client_Request extends Solarium_Configurable
* unless you set the overwrite param to true.
*
* Empty params are not added to the request. If you want to empty a param disable it you should use
* remove param instead.
* remove param instead.
*
* @param string $key
* @param string|array $value
...
...
@@ -261,7 +261,7 @@ class Solarium_Client_Request extends Solarium_Configurable
/**
* Clear all request params
*
*
* @return Solarium_Client_Request
*/
public
function
clearParams
()
...
...
@@ -326,7 +326,7 @@ class Solarium_Client_Request extends Solarium_Configurable
public
function
addHeader
(
$value
)
{
$this
->
_headers
[]
=
$value
;
return
$this
;
}
...
...
@@ -347,7 +347,7 @@ class Solarium_Client_Request extends Solarium_Configurable
/**
* Clear all request headers
*
*
* @return Solarium_Client_Request
*/
public
function
clearHeaders
()
...
...
@@ -372,7 +372,7 @@ class Solarium_Client_Request extends Solarium_Configurable
$queryString
);
}
return
$this
->
getHandler
()
.
'?'
.
$queryString
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment