http_vars: Parse http GET or POST variables, returning a list.

Description Usage Arguments Details Value Author(s) See Also

View source: R/websockets.R

Description

Parse http GET or POST variables, returning a list.

Usage

1
http_vars(socket, header)

Arguments

socket

An open client socket connection.

header

An http header.

Details

Parse http GET or POST variables, returning a list. This function is designed to be used within the static webpage callback described in create_server. This function does not work properly yet with POST messages. If you really need to use POST, use a better web service than this or contribute proper POST handling to this package.

Value

A list, possibly NULL, containing the named parsed variables.

Author(s)

B. W. Lewis <[email protected]>

See Also

createContext create_server static_file_service static_text_service


rstudio/R-Websockets documentation built on May 25, 2017, 8 p.m.