21e3171e11f0c53f5bf91e0e97f92c6472ef037e
Replaced the switch statement in the ToHttpMethod method with a case-insensitive dictionary for mapping HTTP method strings to HttpMethod objects. Introduced a private static dictionary to store predefined HTTP methods, including the addition of the CONNECT method. Improved performance and maintainability by leveraging dictionary lookups for faster and cleaner code.
Description
Languages
C#
100%