Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow Metadata to be constructed and set on AddressedEnvelope #1591

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

PeterAdams-A
Copy link
Contributor

Motivation:

This needs to be possible so users can specify what
ECN status they wish to send. The auto-generated
initialiser is internal.

Modifications:

Add public initialiser to AddressedEnvelope.Metadata
Add public initialiser to AddressedEnvelope taking Metadata

Result:

Users will be able to construct AddressedEnvelopes with Metadata set.

Motivation:

This needs to be possible so users can specify what
ECN status they wish to send.  The auto-generated
initialiser is internal.

Modifications:

Add public initialiser to AddressedEnvelope.Metadata
Add public initialiser to AddressedEnvelope taking Metadata

Result:

Users will be able to construct AddressedEnvelopes with Metadata set.
@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Jul 14, 2020
@Lukasa Lukasa added this to the 2.20.0 milestone Jul 14, 2020
@Lukasa
Copy link
Contributor

Lukasa commented Jul 14, 2020

@swift-nio-bot test this please

@PeterAdams-A PeterAdams-A merged commit 723ff6a into apple:master Jul 14, 2020
@PeterAdams-A PeterAdams-A deleted the metadata_constructor branch July 14, 2020 14:51
slashmo pushed a commit to slashmo/swift-nio that referenced this pull request Aug 18, 2020
…1591)

Motivation:

This needs to be possible so users can specify what
ECN status they wish to send.  The auto-generated
initialiser is internal.

Modifications:

Add public initialiser to AddressedEnvelope.Metadata
Add public initialiser to AddressedEnvelope taking Metadata

Result:

Users will be able to construct AddressedEnvelopes with Metadata set.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants