dotnet / WatsonWebserver

Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
MIT License
403 stars 83 forks source link

Query has wrong type #96

Closed ilsnk closed 2 years ago

ilsnk commented 2 years ago

Quary can has recurring keys, correct use NameValueCollection image

ilsnk commented 2 years ago

and why WatsonWebserver not supported Basic Authentication ? (like on screen) image

jchristn commented 2 years ago

Authentication should be a function you implement in your PreRequestRouting handler or elsewhere. It was never intended to have the library manage authentication for you.

Regarding use of NameValueCollection vs Dictionary, the server follows the RFC in that multiple values provided with multiple keys of the same name can be represented as a single value separated by commas. This SO answer may be helpful: https://stackoverflow.com/questions/3096888/standard-for-adding-multiple-values-of-a-single-http-header-to-a-request-or-resp

Cheers, Joel