aboutsummaryrefslogtreecommitdiff
path: root/lib/Net.Http
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-01-21 21:43:21 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2023-01-21 21:43:21 -0500
commit05ebe3b38342ba38ad0f1c418058d5100ca776ab (patch)
tree42d8b368c7dabc09d8761f3cce7411c8f5b0565f /lib/Net.Http
parent46caaac9debdaad496c07af9d3806e67a447066c (diff)
Fix FBM session cancel, fix plugin log file names
Diffstat (limited to 'lib/Net.Http')
-rw-r--r--lib/Net.Http/src/Helpers/ContentType.cs2
-rw-r--r--lib/Net.Http/src/Helpers/HelperTypes.cs68
-rw-r--r--lib/Net.Http/src/VNLib.Net.Http.csproj1
3 files changed, 70 insertions, 1 deletions
diff --git a/lib/Net.Http/src/Helpers/ContentType.cs b/lib/Net.Http/src/Helpers/ContentType.cs
index ce7b7ce..6c215a7 100644
--- a/lib/Net.Http/src/Helpers/ContentType.cs
+++ b/lib/Net.Http/src/Helpers/ContentType.cs
@@ -22,6 +22,8 @@
* along with this program. If not, see https://www.gnu.org/licenses/.
*/
+#pragma warning disable CS1591
+
namespace VNLib.Net.Http
{
/// <summary>
diff --git a/lib/Net.Http/src/Helpers/HelperTypes.cs b/lib/Net.Http/src/Helpers/HelperTypes.cs
index a8aeb1f..d9db604 100644
--- a/lib/Net.Http/src/Helpers/HelperTypes.cs
+++ b/lib/Net.Http/src/Helpers/HelperTypes.cs
@@ -32,26 +32,73 @@ namespace VNLib.Net.Http
[Flags]
public enum HttpMethod
{
+ /// <summary>
+ /// default/no method found
+ /// </summary>
None,
+ /// <summary>
+ /// Http GET request method
+ /// </summary>
GET = 0x01,
+ /// <summary>
+ /// Http POST request method
+ /// </summary>
POST = 0x02,
+ /// <summary>
+ /// Http PUT request method
+ /// </summary>
PUT = 0x04,
+ /// <summary>
+ /// Http OPTIONS request method
+ /// </summary>
OPTIONS = 0x08,
+ /// <summary>
+ /// Http HEAD request method
+ /// </summary>
HEAD = 0x10,
+ /// <summary>
+ /// Http MERGE request method
+ /// </summary>
MERGE = 0x20,
+ /// <summary>
+ /// Http COPY request method
+ /// </summary>
COPY = 0x40,
+ /// <summary>
+ /// Http DELETE request method
+ /// </summary>
DELETE = 0x80,
+ /// <summary>
+ /// Http PATCH request method
+ /// </summary>
PATCH = 0x100,
+ /// <summary>
+ /// Http TRACE request method
+ /// </summary>
TRACE = 0x200,
+ /// <summary>
+ /// Http MOVE request method
+ /// </summary>
MOVE = 0x400,
- LOCK = 0x800
+ /// <summary>
+ /// Http LOCK request method
+ /// </summary>
+ LOCK = 0x800,
+ /// <summary>
+ /// Http UNLOCK request method
+ /// </summary>
+ UNLOCK = 0x1000
}
+
/// <summary>
/// HTTP protocol version
/// </summary>
[Flags]
public enum HttpVersion
{
+ /// <summary>
+ /// Enum empty type
+ /// </summary>
None,
/// <summary>
/// Http Version 1
@@ -74,17 +121,36 @@ namespace VNLib.Net.Http
/// </summary>
Http3 = 0x0A
}
+
/// <summary>
/// HTTP response entity cache flags
/// </summary>
[Flags]
public enum CacheType
{
+ /// <summary>
+ /// default cache type
+ /// </summary>
None = 0x00,
+ /// <summary>
+ /// Set the cache header to 'No-Cache'
+ /// </summary>
NoCache = 0x01,
+ /// <summary>
+ /// Sets the cache type private varibale
+ /// </summary>
Private = 0x02,
+ /// <summary>
+ /// sets the cache type to public
+ /// </summary>
Public = 0x04,
+ /// <summary>
+ /// Sets the nocache to no-store
+ /// </summary>
NoStore = 0x08,
+ /// <summary>
+ /// Sets the must-revalidate cache flag
+ /// </summary>
Revalidate = 0x10
}
diff --git a/lib/Net.Http/src/VNLib.Net.Http.csproj b/lib/Net.Http/src/VNLib.Net.Http.csproj
index 30e698c..3bbd73d 100644
--- a/lib/Net.Http/src/VNLib.Net.Http.csproj
+++ b/lib/Net.Http/src/VNLib.Net.Http.csproj
@@ -20,6 +20,7 @@ outside of the VNLib ecosystem are required. The VNLib.Plugins and VNLib.Plugins
<AnalysisLevel>latest-all</AnalysisLevel>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>\\vaughnnugent.com\Internal\Folder Redirection\vman\Documents\Programming\Software\StrongNameingKey.snk</AssemblyOriginatorKeyFile>
+ <RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
</PropertyGroup>
<!-- Resolve nuget dll files and store them in the output dir -->