mirror of
https://github.com/Wessel/Roommapper.git
synced 2026-07-23 08:17:12 +02:00
feat(tests): Add unit tests for LibHttp, also switch to enums for request methods
This commit is contained in:
199
src/Server/.idea/.idea.REST API/.idea/workspace.xml
generated
199
src/Server/.idea/.idea.REST API/.idea/workspace.xml
generated
@@ -8,203 +8,29 @@
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="79f184c3-e88e-45be-9116-5fa813562754" name="Changes" comment="">
|
||||
<change afterPath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/copilot/chatSessions/00000000000-Helix-2.xd" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/copilot/chatSessions/xd-Helix-2.lck" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/LibParse/bin/Debug/net8.0/LibParse-Helix.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/GlobalUsings.cs" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/LibParse.cs" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/Tests.csproj" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/CoverletSourceRootsMapping_Tests" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/LibParse-Helix.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/LibParse.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/LibParse.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.TestPlatform.CommunicationUtilities.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.TestPlatform.CoreUtilities.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.TestPlatform.CrossPlatEngine.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.TestPlatform.PlatformAbstractions.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.TestPlatform.Utilities.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.VisualStudio.TestPlatform.Common.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/NUnit3.TestAdapter.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/NUnit3.TestAdapter.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Newtonsoft.Json.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/NuGet.Frameworks.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests-Helix.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests-Helix.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.deps.json" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.runtimeconfig.json" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/de/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/es/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/fr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/it/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/it/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/it/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/it/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ja/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ko/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/nunit.engine.api.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/nunit.engine.core.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/nunit.engine.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/nunit.framework.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pl/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pt-BR/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ru/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/testcentric.engine.metadata.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/testhost.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/testhost.exe" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/tr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CommunicationUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CrossPlatEngine.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.Common.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/.signature.p7s" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6.nupkg" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/ThirdPartyNotices.txt" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1028/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1029/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1031/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1033/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1034/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1036/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1040/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1041/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1042/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1045/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1046/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1049/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/1055/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/2052/googletest.propertiesui.xml" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.targets" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-death-test.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-message.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-param-test.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-param-test.h.pump" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-printers.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-spi.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-test-part.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest-typed-test.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest_pred_impl.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/gtest_prod.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/custom/README.md" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/custom/gtest-port.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/custom/gtest-printers.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/custom/gtest.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-death-test-internal.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-filepath.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-internal.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-linked_ptr.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-param-util-generated.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-param-util-generated.h.pump" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-param-util.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-port-arch.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-port.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-string.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-tuple.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-tuple.h.pump" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-type-util.h" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/build/native/include/gtest/internal/gtest-type-util.h.pump" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Debug/gtest.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Debug/gtest_main.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Debug/gtest_maind.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Debug/gtestd.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Release/gtest.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Release/gtest.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Release/gtest_main.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/arm64/Release/gtest_main.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Debug/gtest.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Debug/gtest_main.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Debug/gtest_maind.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Debug/gtestd.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Release/gtest.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Release/gtest.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Release/gtest_main.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x64/Release/gtest_main.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Debug/gtest.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Debug/gtest_main.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Debug/gtest_maind.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Debug/gtestd.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Release/gtest.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Release/gtest.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Release/gtest_main.lib" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/lib/native/v140/windesktop/msvcstl/static/rt-dyn/x86/Release/gtest_main.pdb" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/packages/Microsoft.googletest.v140.windesktop.msvcstl.static.rt-dyn.1.8.1.6/license (MIT).txt" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/copilot/chatSessions/00000000000.xd" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/copilot/chatSessions/00000000000.xd" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/copilot/chatSessions/xd.lck" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/copilot/chatSessions/xd.lck" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/discord.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/discord.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.REST API/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/Console.dll" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/Console.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/Console.exe" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/Console.exe" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/Console.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/Console.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibHttp.dll" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibHttp.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibHttp.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibHttp.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibParse.dll" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibParse.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibParse.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibParse.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibServer.dll" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibServer.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibServer.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/Console/bin/Debug/net8.0/LibServer.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibHttp/MimeTypes.cs" beforeDir="false" afterPath="$PROJECT_DIR$/LibHttp/MimeTypes.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibHttp/Request.cs" beforeDir="false" afterPath="$PROJECT_DIR$/LibHttp/Request.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibHttp/bin/Debug/net8.0/LibHttp.dll" beforeDir="false" afterPath="$PROJECT_DIR$/LibHttp/bin/Debug/net8.0/LibHttp.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibHttp/bin/Debug/net8.0/LibHttp.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/LibHttp/bin/Debug/net8.0/LibHttp.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibParse/Json/JsonReader.cs" beforeDir="false" afterPath="$PROJECT_DIR$/LibParse/Json/JsonReader.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibParse/Json/JsonWriter.cs" beforeDir="false" afterPath="$PROJECT_DIR$/LibParse/Json/JsonWriter.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibParse/bin/Debug/net8.0/LibParse.dll" beforeDir="false" afterPath="$PROJECT_DIR$/LibParse/bin/Debug/net8.0/LibParse.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibParse/bin/Debug/net8.0/LibParse.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/LibParse/bin/Debug/net8.0/LibParse.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibServer/Router/Router.cs" beforeDir="false" afterPath="$PROJECT_DIR$/LibServer/Router/Router.cs" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibHttp.dll" beforeDir="false" afterPath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibHttp.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibHttp.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibHttp.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibServer.dll" beforeDir="false" afterPath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibServer.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibServer.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/LibServer/bin/Debug/net8.0/LibServer.pdb" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/REST API.sln" beforeDir="false" afterPath="$PROJECT_DIR$/REST API.sln" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/REST API.sln.DotSettings.user" beforeDir="false" afterPath="$PROJECT_DIR$/REST API.sln.DotSettings.user" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Tests/Tests.csproj" beforeDir="false" afterPath="$PROJECT_DIR$/Tests/Tests.csproj" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/CoverletSourceRootsMapping_Tests" beforeDir="false" afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/CoverletSourceRootsMapping_Tests" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.deps.json" beforeDir="false" afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.deps.json" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.dll" beforeDir="false" afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.dll" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/Tests/bin/Debug/net8.0/Tests.pdb" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@@ -225,8 +51,10 @@
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
".NET Project.Console.executor": "Run",
|
||||
"ASKED_ADD_EXTERNAL_FILES": "true",
|
||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"d452b4e4-aa15-4fa9-847f-33d4d7fab23d.executor": "Run",
|
||||
"git-widget-placeholder": "master",
|
||||
"ignore.virus.scanning.warn.message": "true",
|
||||
"node.js.detected.package.eslint": "true",
|
||||
@@ -238,9 +66,9 @@
|
||||
},
|
||||
"keyToStringList": {
|
||||
"rider.external.source.directories": [
|
||||
"C:\\Users\\wesse\\AppData\\Roaming\\JetBrains\\Rider2023.3\\resharper-host\\DecompilerCache",
|
||||
"C:\\Users\\wesse\\AppData\\Roaming\\JetBrains\\Rider2023.3\\resharper-host\\SourcesCache",
|
||||
"C:\\Users\\wesse\\AppData\\Local\\Symbols\\src"
|
||||
"C:\\Users\\Wessel\\AppData\\Roaming\\JetBrains\\Rider2023.3\\resharper-host\\DecompilerCache",
|
||||
"C:\\Users\\Wessel\\AppData\\Roaming\\JetBrains\\Rider2023.3\\resharper-host\\SourcesCache",
|
||||
"C:\\Users\\Wessel\\AppData\\Local\\Symbols\\src"
|
||||
]
|
||||
}
|
||||
}</component>
|
||||
@@ -276,6 +104,7 @@
|
||||
<workItem from="1710757465555" duration="162000" />
|
||||
<workItem from="1710757652523" duration="455000" />
|
||||
<workItem from="1710782428120" duration="45000" />
|
||||
<workItem from="1710837790010" duration="665000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,6 +6,50 @@ public enum Mime {
|
||||
Text
|
||||
};
|
||||
|
||||
public enum Method {
|
||||
Get,
|
||||
Post,
|
||||
Put,
|
||||
Delete,
|
||||
Patch,
|
||||
Head,
|
||||
Options,
|
||||
Connect,
|
||||
Trace
|
||||
};
|
||||
|
||||
public static class MethodClass {
|
||||
public static string MethodToString(Method method) {
|
||||
return method switch {
|
||||
Method.Get => "GET",
|
||||
Method.Post => "POST",
|
||||
Method.Put => "PUT",
|
||||
Method.Delete => "DELETE",
|
||||
Method.Patch => "PATCH",
|
||||
Method.Head => "HEAD",
|
||||
Method.Options => "OPTIONS",
|
||||
Method.Connect => "CONNECT",
|
||||
Method.Trace => "TRACE",
|
||||
_ => "GET"
|
||||
};
|
||||
}
|
||||
|
||||
public static Method StringToMethod(string method) {
|
||||
return method switch {
|
||||
"GET" => Method.Get,
|
||||
"POST" => Method.Post,
|
||||
"PUT" => Method.Put,
|
||||
"DELETE" => Method.Delete,
|
||||
"PATCH" => Method.Patch,
|
||||
"HEAD" => Method.Head,
|
||||
"OPTIONS" => Method.Options,
|
||||
"CONNECT" => Method.Connect,
|
||||
"TRACE" => Method.Trace,
|
||||
_ => Method.Get
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public static class MimeTypes {
|
||||
public static string MimeToHeader(Mime mime) {
|
||||
return mime switch {
|
||||
|
||||
@@ -4,9 +4,10 @@ public class HtmlRequest {
|
||||
private const string LogPrefix = "\u001b[47m[ WWW ]\u001b[0m";
|
||||
|
||||
public string? Route;
|
||||
private string? _httpVersion, _host, _body, _header, _method;
|
||||
private string? _httpVersion, _host, _body, _header;
|
||||
private Method? _method;
|
||||
|
||||
public string? Method => _method;
|
||||
public Method? Method => _method;
|
||||
public string? Body => _body;
|
||||
|
||||
public int Parse(string raw) {
|
||||
@@ -25,7 +26,7 @@ public class HtmlRequest {
|
||||
if (i == 0) {
|
||||
if (!parts[0].Contains("HTTP")) return -1;
|
||||
var first = parts[0].Split(" ");
|
||||
_method = first[0].ToUpper();
|
||||
_method = MethodClass.StringToMethod(first[0].ToUpper());
|
||||
Route = first[1];
|
||||
_httpVersion = first[2].Split("/")[1];
|
||||
} else {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -10,13 +10,13 @@ public class Router(Dictionary<string, IRoute> routes) {
|
||||
foreach (var route in Routes) {
|
||||
if (request.Route == route.Key) {
|
||||
return request.Method switch {
|
||||
"GET" => route.Value.Get(request),
|
||||
"POST" => route.Value.Post(request),
|
||||
"PUT" => route.Value.Put(request),
|
||||
"PATCH" => route.Value.Patch(request),
|
||||
"DELETE" => route.Value.Delete(request),
|
||||
"HEAD" => route.Value.Head(request),
|
||||
"OPTIONS" => route.Value.Options(request),
|
||||
Method.Get => route.Value.Get(request),
|
||||
Method.Post => route.Value.Post(request),
|
||||
Method.Put => route.Value.Put(request),
|
||||
Method.Patch => route.Value.Patch(request),
|
||||
Method.Delete => route.Value.Delete(request),
|
||||
Method.Head => route.Value.Head(request),
|
||||
Method.Options => route.Value.Options(request),
|
||||
_ => route.Value.MethodNotAllowed()
|
||||
};
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,11 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:String x:Key="/Default/CodeInspection/PencilsConfiguration/ActualSeverity/@EntryValue">INFO</s:String>
|
||||
<s:String x:Key="/Default/Environment/UnitTesting/UnitTestSessionStore/Sessions/=d452b4e4_002Daa15_002D4fa9_002D847f_002D33d4d7fab23d/@EntryIndexedValue"><SessionState ContinuousTestingMode="0" IsActive="True" Name="ParseJsonToAnonymousObject" xmlns="urn:schemas-jetbrains-com:jetbrains-ut-session">
|
||||
<ProjectFile>56E0FEEA-8155-4979-8E90-EF2F3DA4B9E4/f:LibParse.cs</ProjectFile>
|
||||
<Or>
|
||||
<ProjectFile>56E0FEEA-8155-4979-8E90-EF2F3DA4B9E4/f:LibParse.cs</ProjectFile>
|
||||
<TestAncestor>
|
||||
<TestId>NUnit3x::56E0FEEA-8155-4979-8E90-EF2F3DA4B9E4::net8.0::Tests.LibHttpTests.TestGet</TestId>
|
||||
<TestId>NUnit3x::56E0FEEA-8155-4979-8E90-EF2F3DA4B9E4::net8.0::Tests.LibHttpTests.TestSend</TestId>
|
||||
</TestAncestor>
|
||||
</Or>
|
||||
</SessionState></s:String></wpf:ResourceDictionary>
|
||||
28
src/Server/Tests/LibHttp.cs
Normal file
28
src/Server/Tests/LibHttp.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
namespace Tests;
|
||||
using LibHttp;
|
||||
|
||||
public class LibHttpTests {
|
||||
private static readonly string Body = "Hello, World!";
|
||||
private static readonly Method Method = Method.Get;
|
||||
|
||||
[Test]
|
||||
public void TestGet() {
|
||||
const string message = "GET /tests HTTP/1.1 200 OK\r\nContent-Length: 13\r\n\r\nHello, World!";
|
||||
var request = new HtmlRequest();
|
||||
request.Parse(message);
|
||||
Assert.Multiple(() => {
|
||||
Assert.That(Body, Is.EqualTo(request.Body));
|
||||
Assert.That(Method, Is.EqualTo(request.Method));
|
||||
});
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestSend() {
|
||||
var response = new HtmlResponse("Hello, World!");
|
||||
|
||||
Assert.Multiple(() => {
|
||||
Assert.That(Body, Is.EqualTo(response.Body));
|
||||
Assert.That(response.Headers, Has.Count.EqualTo(1));
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LibHttp\LibHttp.csproj" />
|
||||
<ProjectReference Include="..\LibParse\LibParse.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Binary file not shown.
BIN
src/Server/Tests/bin/Debug/net8.0/LibHttp.dll
Normal file
BIN
src/Server/Tests/bin/Debug/net8.0/LibHttp.dll
Normal file
Binary file not shown.
BIN
src/Server/Tests/bin/Debug/net8.0/LibHttp.pdb
Normal file
BIN
src/Server/Tests/bin/Debug/net8.0/LibHttp.pdb
Normal file
Binary file not shown.
@@ -8,6 +8,7 @@
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"Tests/1.0.0": {
|
||||
"dependencies": {
|
||||
"LibHttp": "1.0.0",
|
||||
"LibParse": "1.0.0",
|
||||
"Microsoft.NET.Test.Sdk": "17.6.0",
|
||||
"NUnit": "3.13.3",
|
||||
@@ -317,6 +318,11 @@
|
||||
"NUnit.Analyzers/3.6.1": {},
|
||||
"NUnit3TestAdapter/4.2.1": {},
|
||||
"System.Reflection.Metadata/1.6.0": {},
|
||||
"LibHttp/1.0.0": {
|
||||
"runtime": {
|
||||
"LibHttp.dll": {}
|
||||
}
|
||||
},
|
||||
"LibParse/1.0.0": {
|
||||
"runtime": {
|
||||
"LibParse.dll": {}
|
||||
@@ -421,6 +427,11 @@
|
||||
"path": "system.reflection.metadata/1.6.0",
|
||||
"hashPath": "system.reflection.metadata.1.6.0.nupkg.sha512"
|
||||
},
|
||||
"LibHttp/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"LibParse/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user