Skip to content

add headers getter in Frame class - #61

Merged
jmglsn merged 1 commit into
stomp-php:masterfrom
surrealcristian:frame-headers-getter
Aug 26, 2016
Merged

add headers getter in Frame class#61
jmglsn merged 1 commit into
stomp-php:masterfrom
surrealcristian:frame-headers-getter

Conversation

@surrealcristian

@surrealcristian surrealcristian commented Aug 25, 2016

Copy link
Copy Markdown

Hi!

In a project I need access to the headers of a message, so I will like to add a getHeaders() method in the Frame class, analog to the getBody() method.

@jmglsn jmglsn self-assigned this Aug 26, 2016
@jmglsn jmglsn added this to the Release 4.1 milestone Aug 26, 2016
@jmglsn

jmglsn commented Aug 26, 2016

Copy link
Copy Markdown
Member

Please note that Frame supports ArrayAccess to access specific headers.

@jmglsn
jmglsn merged commit ae77d4a into stomp-php:master Aug 26, 2016
@jmglsn

jmglsn commented Aug 26, 2016

Copy link
Copy Markdown
Member

Included in https://github.com/stomp-php/stomp-php/releases/tag/4.1.4 we'll see if we add the Iterator Interface later.

@surrealcristian

Copy link
Copy Markdown
Author

Thanks!

@surrealcristian
surrealcristian deleted the frame-headers-getter branch August 26, 2016 14:41
Sign up for free to 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.

2 participants