EVOLUTION-MANAGER
Edit File: staticPathOptions.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Create options for static paths</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for staticPathOptions {httpuv}"><tr><td>staticPathOptions {httpuv}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Create options for static paths</h2> <h3>Description</h3> <p>Create options for static paths </p> <h3>Usage</h3> <pre> staticPathOptions( indexhtml = TRUE, fallthrough = FALSE, html_charset = "utf-8", headers = list(), validation = character(0), exclude = FALSE ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>indexhtml</code></td> <td> <p>If an index.html file is present, should it be served up when the client requests the static path or any subdirectory?</p> </td></tr> <tr valign="top"><td><code>fallthrough</code></td> <td> <p>With the default value, <code>FALSE</code>, if a request is made for a file that doesn't exist, then httpuv will immediately send a 404 response from the background I/O thread, without needing to call back into the main R thread. This offers the best performance. If the value is <code>TRUE</code>, then instead of sending a 404 response, httpuv will call the application's <code>call</code> function, and allow it to handle the request.</p> </td></tr> <tr valign="top"><td><code>html_charset</code></td> <td> <p>When HTML files are served, the value that will be provided for <code>charset</code> in the Content-Type header. For example, with the default value, <code>"utf-8"</code>, the header is <code>Content-Type: text/html; charset=utf-8</code>. If <code>""</code> is used, then no <code>charset</code> will be added in the Content-Type header.</p> </td></tr> <tr valign="top"><td><code>headers</code></td> <td> <p>Additional headers and values that will be included in the response.</p> </td></tr> <tr valign="top"><td><code>validation</code></td> <td> <p>An optional validation pattern. Presently, the only type of validation supported is an exact string match of a header. For example, if <code>validation</code> is <code>'"abc" = "xyz"'</code>, then HTTP requests must have a header named <code>abc</code> (case-insensitive) with the value <code>xyz</code> (case-sensitive). If a request does not have a matching header, than httpuv will give a 403 Forbidden response. If the <code>character(0)</code> (the default), then no validation check will be performed.</p> </td></tr> <tr valign="top"><td><code>exclude</code></td> <td> <p>Should this path be excluded from static serving? (This is only to be used internally, for <code><a href="staticPath.html">excludeStaticPath</a></code>.)</p> </td></tr> </table> <hr /><div style="text-align: center;">[Package <em>httpuv</em> version 1.5.4 <a href="00Index.html">Index</a>]</div> </body></html>