Description Usage Arguments Value Logging Examples
Presser web server options
1 2 3 4 5 6 7 8 9 10 11 |
remote |
Meta-option. If set to |
port |
Port to start the web server on. Defaults to a randomly chosen port. |
num_threads |
Number of request handler threads to use. Typically you don't need more than one thread, unless you run test cases in parallel or you make concurrent HTTP requests. |
interfaces |
The network interfaces to listen on. Being a test web server, it defaults to the localhost. Only bind to a public interface if you know what you are doing. presser was not designed to serve public web pages. |
enable_keep_alive |
Whether the server keeps connections alive. |
access_log_file |
|
error_log_file |
|
tcp_nodelay |
if |
throttle |
Limit download speed for clients. If not |
List of options that can be passed to presser_app$listen()
(see new_app()
), and new_app_process()
.
For access_log_file
, TRUE
means <log-dir>/access.log
.
For error_log_file
, TRUE
means <log-dir>/error.log
.
<log-dir>
is set to the contents of the PRESSER_LOG_DIR
environment variable, if it is set. Otherwise it is set to
<tmpdir>/presser
for local apps and <tmpdir>/<pid>/presser
for
remote apps (started with new_app_procss()
).
<tmpdir>
is the session temporary directory of the main process.
<pid>
is the process id of the subprocess.
1 2 | # See the defaults
server_opts()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.