< Summary

Information
Class: NanoRoute.Internals.HttpVerbExtensions
Assembly: NanoRoute.dll
File(s): /home/runner/work/nanoroute/nanoroute/Src/NanoRoute/Private/HttpVerb.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 35
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBlocks covered Blocks not covered
HttpVerbExtensions()50

File(s)

/home/runner/work/nanoroute/nanoroute/Src/NanoRoute/Private/HttpVerb.cs

#LineLine coverage
 1/********************************************************************************
 2* HttpVerb.cs                                                                   *
 3*                                                                               *
 4* Author: Denes Solti                                                           *
 5********************************************************************************/
 6using System.Collections.Generic;
 7using System.Diagnostics;
 8
 9namespace NanoRoute.Internals
 10{
 11    // Instead of string, we use this value type in dictionaries as it makes the lookup
 12    // much faster
 13    internal enum HttpVerb
 14    {
 15        Get,
 16        Post,
 17        Put,
 18        Delete,
 19        Patch,
 20        Head,
 21        Options,
 22        Trace
 23    }
 24
 25    internal static class HttpVerbExtensions
 26    {
 27        [DebuggerBrowsable(DebuggerBrowsableState.Never)]
 128        private static readonly IReadOnlyCollection<string> _havingBody = [HttpVerb.Post.ToString(), HttpVerb.Put.ToStri
 29
 30        extension(HttpVerb)
 31        {
 132            public static IReadOnlyCollection<string> HavingBody => _havingBody;
 33        }
 34    }
 35}

Methods/Properties

HttpVerbExtensions()
HavingBody()