Skip to content

add NewHandler function#90

Open
rogpeppe wants to merge 1 commit into
migueleliasweb:masterfrom
rogpeppe-contrib:newhandler
Open

add NewHandler function#90
rogpeppe wants to merge 1 commit into
migueleliasweb:masterfrom
rogpeppe-contrib:newhandler

Conversation

@rogpeppe
Copy link
Copy Markdown

With the advent of the synctest package, it's useful to be able to avoid use of the system's network stack.

By providing the NewHandler function, we allow a client to create their own httptest.Server (or use another server implementation), thus allowing them to provide their own network implementation.

With the advent of the synctest package, it's useful to be able to
avoid use of the system's network stack.

By providing the NewHandler function, we allow a client to create
their own httptest.Server (or use another server implementation), thus
allowing them to provide their own network implementation.

Signed-off-by: Roger Peppe <rogpeppe@gmail.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.

1 participant