Skip to content

Add tls scheme to HTTP::Server#bind and rename HTTP::Server#bind_ssl#6533

Merged
RX14 merged 2 commits intocrystal-lang:masterfrom
straight-shoota:jm/feature/http-server-bind-tls
Aug 13, 2018
Merged

Add tls scheme to HTTP::Server#bind and rename HTTP::Server#bind_ssl#6533
RX14 merged 2 commits intocrystal-lang:masterfrom
straight-shoota:jm/feature/http-server-bind-tls

Conversation

@straight-shoota
Copy link
Copy Markdown
Member

This adds tls:// scheme for HTTP::Server#bind and makes it default in documentation. It also renames HTTP::Server#bind_sslto HTTP::Server#bind_tls.

Follow-up on #6500 (discussion starting at #6500 (comment))

@straight-shoota straight-shoota force-pushed the jm/feature/http-server-bind-tls branch from a0e4bd3 to 8182fe2 Compare August 13, 2018 10:17
@straight-shoota straight-shoota force-pushed the jm/feature/http-server-bind-tls branch from 8182fe2 to daaed8b Compare August 13, 2018 10:25
@RX14 RX14 added the breaking-change May have breaking effect in some edge cases. Mostly negligible, but still noteworthy. label Aug 13, 2018
@RX14 RX14 modified the milestone: Next Aug 13, 2018
Copy link
Copy Markdown
Member

@RX14 RX14 left a comment

Choose a reason for hiding this comment

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

Do we want to make such a minimal breaking change to an API just introduced?

@jhass
Copy link
Copy Markdown
Member

jhass commented Aug 13, 2018

Do we want to make such a minimal breaking change to an API just introduced?

Yes, I think its fair. People using it should still be actively working on their projects.

@RX14 RX14 added this to the Next milestone Aug 13, 2018
@RX14 RX14 merged commit 0af2e03 into crystal-lang:master Aug 13, 2018
@straight-shoota straight-shoota deleted the jm/feature/http-server-bind-tls branch August 13, 2018 17:09
@straight-shoota
Copy link
Copy Markdown
Member Author

Yeah, it's too bad 0.26.0 is already done.

Maybe something breaks and we need to ship 0.26.1 right away, then this could be included in the bug fix ;)

@bcardiff
Copy link
Copy Markdown
Member

Kemal already update it's api to use bind_ssl.
We should add bind_ssl for 0.26.x so we can ship master as it and remove bind_ssl in 0.27

@straight-shoota
Copy link
Copy Markdown
Member Author

You mean to temporarily re-add bind_ssl as alias for bind_tls?

@bcardiff
Copy link
Copy Markdown
Member

Yes.

@miketheman miketheman mentioned this pull request Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change May have breaking effect in some edge cases. Mostly negligible, but still noteworthy. kind:refactor topic:stdlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants