Giter Club home page Giter Club logo

Comments (3)

mtdowling avatar mtdowling commented on May 1, 2024

This repo hasn't been updated to reflect recent changes to psr-7. We hope to get to it soon though.

On Apr 16, 2015, at 8:37 AM, Hari K T [email protected] wrote:

Hi,

I was going through the guzzle code, have a doubt regarding the implementation

$new->headers[strtolower($header)][] = $value;

Doesn't it need to preserve the case sensitivity? See

https://github.com/php-fig/http-message/blob/f3218d1cdf479cd9a65d568f605edbc17c6df82a/src/MessageInterface.php#L118

While header names are case-insensitive, the casing of the header will be preserved by this function, and returned from getHeaders()
and I am seeing

return $this->headerLines;

public function getHeaders()
{
return $this->headerLines;
}
I understand it finally is returning the preserved value. But does headerLines in headers is a bit confusing? I wished the variable name is like

public function getHeaders()
{
return $this->headers;
}

public function getHeaderLines()
{
return $this->headerLines;
}
Thank you

β€”
Reply to this email directly or view it on GitHub.

from psr7.

harikt avatar harikt commented on May 1, 2024

Thank you @mtdowling for the fast reply.

from psr7.

mtdowling avatar mtdowling commented on May 1, 2024

Everything should now be up to date

from psr7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.