You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<ahref="https://www.paypal.me/LorenzoPichilli"><imgsrc="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="Donate to this project using Paypal"></a></p>
27
-
<p>This is a large database of known HTTP Request Methods and information about them. It consists of a single, public JSON file and does not include any logic, allowing it to remain as un-opinionated as possible with an API. It aggregates data from the following sources:</p>
27
+
<p>This is a database of known HTTP Request Methods and information about them. It consists of a single, public JSON file and does not include any logic, allowing it to remain as un-opinionated as possible with an API. It aggregates data from the following sources:</p>
<pre><codeclass="language-js"><spanclass="hl-3">import</span><spanclass="hl-0"></span><spanclass="hl-4">db</span><spanclass="hl-0"></span><spanclass="hl-3">from</span><spanclass="hl-0"></span><spanclass="hl-5">'http-request-method-db'</span><spanclass="hl-0">;</span><br/><spanclass="hl-2">// .. or</span><br/><spanclass="hl-6">const</span><spanclass="hl-0"></span><spanclass="hl-7">db</span><spanclass="hl-0"> = </span><spanclass="hl-8">require</span><spanclass="hl-0">(</span><spanclass="hl-5">'http-request-method-db'</span><spanclass="hl-0">);</span><br/><br/><spanclass="hl-6">const</span><spanclass="hl-0"></span><spanclass="hl-7">getInfo</span><spanclass="hl-0"> = </span><spanclass="hl-4">db</span><spanclass="hl-0">[</span><spanclass="hl-5">'get'</span><spanclass="hl-0">]; </span><spanclass="hl-2">// An instance of HTTPRequestMethod</span><br/><spanclass="hl-4">console</span><spanclass="hl-0">.</span><spanclass="hl-8">log</span><spanclass="hl-0">(</span><spanclass="hl-4">getInfo</span><spanclass="hl-0">.</span><spanclass="hl-4">syntax</span><spanclass="hl-0">); </span><spanclass="hl-2">// GET /index.html</span>
51
+
<pre><codeclass="language-js"><spanclass="hl-3">import</span><spanclass="hl-0"></span><spanclass="hl-4">db</span><spanclass="hl-0"></span><spanclass="hl-3">from</span><spanclass="hl-0"></span><spanclass="hl-5">'http-request-method-db'</span><spanclass="hl-0">;</span><br/><spanclass="hl-2">// .. or</span><br/><spanclass="hl-6">const</span><spanclass="hl-0"></span><spanclass="hl-7">db</span><spanclass="hl-0"> = </span><spanclass="hl-8">require</span><spanclass="hl-0">(</span><spanclass="hl-5">'http-request-method-db'</span><spanclass="hl-0">).</span><spanclass="hl-4">default</span><spanclass="hl-0">;</span><br/><br/><spanclass="hl-6">const</span><spanclass="hl-0"></span><spanclass="hl-7">getInfo</span><spanclass="hl-0"> = </span><spanclass="hl-4">db</span><spanclass="hl-0">[</span><spanclass="hl-5">'get'</span><spanclass="hl-0">]; </span><spanclass="hl-2">// An instance of HTTPRequestMethod</span><br/><spanclass="hl-4">console</span><spanclass="hl-0">.</span><spanclass="hl-8">log</span><spanclass="hl-0">(</span><spanclass="hl-4">getInfo</span><spanclass="hl-0">.</span><spanclass="hl-4">syntax</span><spanclass="hl-0">); </span><spanclass="hl-2">// GET /index.html</span>
52
52
</code></pre>
53
53
<p>Access HTTP Request Method info using the request method name in <strong>lower case</strong> as key.</p>
<divclass="tsd-comment tsd-typography"><p>HTTP Request Method browser info name.</p>
45
45
</div><asideclass="tsd-sources">
46
46
<ul>
47
-
<li>Defined in main.ts:131</li></ul></aside></section>
47
+
<li>Defined in <ahref="https://github.com/pichillilorenzo/http-request-method-db/blob/03725fa/src/main.ts#L131">main.ts:131</a></li></ul></aside></section>
<divclass="tsd-comment tsd-typography"><p>If the HTTP Request Method is supported by the browser.</p>
52
52
</div><asideclass="tsd-sources">
53
53
<ul>
54
-
<li>Defined in main.ts:141</li></ul></aside></section>
54
+
<li>Defined in <ahref="https://github.com/pichillilorenzo/http-request-method-db/blob/03725fa/src/main.ts#L141">main.ts:141</a></li></ul></aside></section>
<divclass="tsd-comment tsd-typography"><p>HTTP Request Method browser info label version.</p>
59
59
</div><asideclass="tsd-sources">
60
60
<ul>
61
-
<li>Defined in main.ts:136</li></ul></aside></section></section></div>
61
+
<li>Defined in <ahref="https://github.com/pichillilorenzo/http-request-method-db/blob/03725fa/src/main.ts#L136">main.ts:136</a></li></ul></aside></section></section></div>
<li>Defined in main.ts:112</li></ul></aside></section>
46
+
<li>Defined in <ahref="https://github.com/pichillilorenzo/http-request-method-db/blob/03725fa/src/main.ts#L112">main.ts:112</a></li></ul></aside></section>
<li>Defined in main.ts:107</li></ul></aside></section></section></div>
53
+
<li>Defined in <ahref="https://github.com/pichillilorenzo/http-request-method-db/blob/03725fa/src/main.ts#L107">main.ts:107</a></li></ul></aside></section></section></div>
<li>Defined in main.ts:312</li></ul></aside></div>
18
+
<li>Defined in <ahref="https://github.com/pichillilorenzo/http-request-method-db/blob/03725fa/src/main.ts#L312">main.ts:312</a></li></ul></aside></div>
0 commit comments