Skip to content

Change Request methods to be in line with PSR-7 - #117

Merged
WyriHaximus merged 1 commit into
reactphp:masterfrom
clue-labs:psr7-alike
Feb 15, 2017
Merged

Change Request methods to be in line with PSR-7#117
WyriHaximus merged 1 commit into
reactphp:masterfrom
clue-labs:psr7-alike

Conversation

@clue

@clueclue commented Feb 15, 2017

Copy link
Copy Markdown
Member

Change Request methods to be in line with PSR-7

  • Rename getQuery() to getQueryParams()
  • Rename getHttpVersion() to getProtocolVersion()
  • Change getHeaders() to always return an array of string values
    for each header

Note that this does NOT implement the PSR-7 interfaces yet, it's merely a step towards removing differences between our interfaces and PSR-7.

Refs #28
Refs #103

* Rename getQuery() to getQueryParams()
* Rename getHttpVersion() to getProtocolVersion()
* Change `getHeaders()` to always return an array of string values
for each header
@clueclue added this to the v0.5.0 milestone Feb 15, 2017
@WyriHaximus
WyriHaximus merged commit 07f0c43 into reactphp:masterFeb 15, 2017
@clue
clue deleted the psr7-alike branch February 15, 2017 09:20
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clue@jsor@WyriHaximus