5 <title>JSDoc: Class: Headers
</title>
7 <script src=
"scripts/prettify/prettify.js"> </script>
8 <script src=
"scripts/prettify/lang-css.js"> </script>
10 <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12 <link type=
"text/css" rel=
"stylesheet" href=
"styles/prettify-tomorrow.css">
13 <link type=
"text/css" rel=
"stylesheet" href=
"styles/jsdoc-default.css">
20 <h1 class=
"page-title">Class: Headers
</h1>
31 <h2><span class=
"attribs"><span class=
"type-signature"></span></span>
32 <span class=
"ancestors"><a href=
"LuCI.html">LuCI
</a>.
</span>Headers
</h2>
34 <div class=
"class-description"><p>The
<code>Headers
</code> class is an internal utility class exposed in HTTP
35 response objects using the
<code>response.headers
</code> property.
</p></div>
41 <div class=
"container-overview">
86 <dt class=
"tag-source">Source:
</dt>
87 <dd class=
"tag-source"><ul class=
"dummy"><li>
88 <a href=
"luci.js.html">luci.js
</a>,
<a href=
"luci.js.html#line324">line
324</a>
136 <h3 class=
"subsection-title">Methods
</h3>
144 <h4 class=
"name" id=
"get"><span class=
"type-signature"></span>get
<span class=
"signature">(name)
</span><span class=
"type-signature"> → {string|null}
</span></h4>
151 <div class=
"description">
152 <p>Returns the value of the given header name.
153 Note: Header-Names are case-insensitive.
</p>
167 <table class=
"params">
180 <th class=
"last">Description
</th>
189 <td class=
"name"><code>name
</code></td>
195 <span class=
"param-type">string
</span>
205 <td class=
"description last"><p>The header name to read
</p></td>
244 <dt class=
"tag-source">Source:
</dt>
245 <dd class=
"tag-source"><ul class=
"dummy"><li>
246 <a href=
"luci.js.html">luci.js
</a>,
<a href=
"luci.js.html#line363">line
363</a>
274 <div class=
"param-desc">
275 <p>The value of the given header name or
<code>null
</code> if the header isn't present.
</p>
286 <span class=
"param-type">string
</span>
289 <span class=
"param-type">null
</span>
307 <h4 class=
"name" id=
"has"><span class=
"type-signature"></span>has
<span class=
"signature">(name)
</span><span class=
"type-signature"> → {boolean}
</span></h4>
314 <div class=
"description">
315 <p>Checks whether the given header name is present.
316 Note: Header-Names are case-insensitive.
</p>
330 <table class=
"params">
343 <th class=
"last">Description
</th>
352 <td class=
"name"><code>name
</code></td>
358 <span class=
"param-type">string
</span>
368 <td class=
"description last"><p>The header name to check
</p></td>
407 <dt class=
"tag-source">Source:
</dt>
408 <dd class=
"tag-source"><ul class=
"dummy"><li>
409 <a href=
"luci.js.html">luci.js
</a>,
<a href=
"luci.js.html#line347">line
347</a>
437 <div class=
"param-desc">
438 <p>Returns
<code>true
</code> if the header name is present,
<code>false
</code> otherwise
</p>
449 <span class=
"param-type">boolean
</span>
477 <h2><a href=
"index.html">Home
</a></h2><h3>Classes
</h3><ul><li><a href=
"LuCI.html">LuCI
</a></li><li><a href=
"LuCI.Class.html">Class
</a></li><li><a href=
"LuCI.dom.html">dom
</a></li><li><a href=
"LuCI.fs.html">fs
</a></li><li><a href=
"LuCI.Headers.html">Headers
</a></li><li><a href=
"LuCI.Network.html">Network
</a></li><li><a href=
"LuCI.Network.Device.html">Device
</a></li><li><a href=
"LuCI.Network.Hosts.html">Hosts
</a></li><li><a href=
"LuCI.Network.Protocol.html">Protocol
</a></li><li><a href=
"LuCI.Network.WifiDevice.html">WifiDevice
</a></li><li><a href=
"LuCI.Network.WifiNetwork.html">WifiNetwork
</a></li><li><a href=
"LuCI.Poll.html">Poll
</a></li><li><a href=
"LuCI.Request.html">Request
</a></li><li><a href=
"LuCI.Request.poll.html">poll
</a></li><li><a href=
"LuCI.Response.html">Response
</a></li><li><a href=
"LuCI.rpc.html">rpc
</a></li><li><a href=
"LuCI.uci.html">uci
</a></li><li><a href=
"LuCI.view.html">view
</a></li><li><a href=
"LuCI.XHR.html">XHR
</a></li></ul>
483 Documentation generated by
<a href=
"https://github.com/jsdoc/jsdoc">JSDoc
3.6.3</a> on Tue Nov
05 2019 09:
33:
05 GMT+
0100 (Central European Standard Time)
486 <script> prettyPrint();
</script>
487 <script src=
"scripts/linenumber.js"> </script>