-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outdated documentation #17
Comments
We had WebListener in Core 1 too so there always was an implementation from Microsoft but it was not crossplatform and less extendable. About the code, I think the correct one would be like if (context.Response.Method == HttpMethod.Get)
{
await context.Response.WriteContentAsync("Hello from Server ...");
} |
You actually also get an error So the first line in the sample must be changed to:
|
updated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HttpListener exists in .NET Core 2 / .NET Standard, so the description that it fills the void is not true.
It does however fill a different purpose in that it does not depend on http.sys on Windows, which can be useful.
Also, the provided sample in
README.md
does not compile:The text was updated successfully, but these errors were encountered: