Skip to content

headers() no longer returned as an associative array #785

@KayakinCoder

Description

@KayakinCoder

Issue Summary

It seems that $response->headers() does not return an associative array, although #361 and sendgrid/php-http-client#19 say it should

How can we reliably get that value?

(The docs say "When using the Event Webhook, it's a best practice to store your X-Message-ID." so we'll do that, just need to know how to get it. Thanks!)

Steps to Reproduce

  1. $response = $sendgrid->send($email);
  2. var_dump($response->headers());

Technical details:

  • sendgrid-php Version: 7.2
  • PHP Version: 5.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions