Skip to content

swift: expose URL components instead of URL type#277

Merged
rebello95 merged 1 commit intomasterfrom
swift-expose-url-components-instead-of-url-type
Jul 22, 2019
Merged

swift: expose URL components instead of URL type#277
rebello95 merged 1 commit intomasterfrom
swift-expose-url-components-instead-of-url-type

Conversation

@rebello95
Copy link
Copy Markdown
Contributor

@rebello95 rebello95 commented Jul 22, 2019

As we bridge over the platform layers to talk to the C/C++ core, we'll need to be able to send headers such as :method/:scheme/:authority.

The URL type exposes optionals for these properties, which means we need to either handle them at initialization time or at the time when the request is executed by unwrapping them and throwing/failing.

In order to prevent throwing when deconstructing URL components, we are instead updating the interfaces to accept these 3 fields separately.

Signed-off-by: Michael Rebello mrebello@lyft.com

As we bridge over the platform layers to talk to the C/C++ core, we'll need to be able to send headers such as `:method`/`:scheme`/`:authority`.

The `URL` type exposes optionals for these properties, which means we need to either handle them at initialization time or at the time when the request is executed by unwrapping them and throwing/failing.

In order to prevent throwing when deconstructing `URL` components, we are instead updating the interfaces to accept these 3 fields separately.

Signed-off-by: Michael Rebello <mrebello@lyft.com>
Copy link
Copy Markdown

@buildbreaker buildbreaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll make the same change for Kotlin shortly

@rebello95 rebello95 merged commit 444cc82 into master Jul 22, 2019
@rebello95 rebello95 deleted the swift-expose-url-components-instead-of-url-type branch July 22, 2019 22:40
buildbreaker pushed a commit that referenced this pull request Jul 23, 2019
To mirror: #277

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: expose URL components instead of URL type
Risk Level: low
Testing: unit
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]
jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 28, 2022
To mirror: envoyproxy/envoy-mobile#277

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: expose URL components instead of URL type
Risk Level: low
Testing: unit
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit to envoyproxy/envoy that referenced this pull request Nov 29, 2022
To mirror: envoyproxy/envoy-mobile#277

Signed-off-by: Alan Chiu <achiu@lyft.com>

For an explanation of how to fill out the fields, please see the relevant section
in [PULL_REQUESTS.md](https://github.com/envoyproxy/envoy/blob/master/PULL_REQUESTS.md)

Description: expose URL components instead of URL type
Risk Level: low
Testing: unit
Docs Changes: n/a
Release Notes: n/a
[Optional Fixes #Issue]
[Optional Deprecated:]

Signed-off-by: JP Simard <jp@jpsim.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants