Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Simplify HTTPS listening, leverage net/http methods #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joejulian
Copy link
Owner

Make use of net/http Server.ListenAndServeTLS — this gives upcoming
http2 support in Go 1.6 for free.

bitly#167

Make use of net/http Server.ListenAndServeTLS — this gives upcoming
http2 support in Go 1.6 for free.
@joejulian
Copy link
Owner Author

@artyom Should basically the same change be made to ServeHTTP?

@artyom
Copy link

artyom commented Mar 7, 2018

@joejulian yes, similar changes can be applied to http listening endpoint; ServeHTTP method does the same "setup listener and run accept loop" logic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants