Learn R Programming

shinypayload (version 0.1.0)

payload_endpoint_url: Generate the absolute URL for the payload endpoint

Description

Generate the absolute URL for the payload endpoint

Usage

payload_endpoint_url(session, path = "/ingress")

Value

A character string containing the complete URL (including protocol, hostname, port, and path) where POST requests should be sent to reach this endpoint.

Arguments

session

The Shiny session object

path

The URL path (default "/ingress")

Examples

Run this code
if (interactive()) {
server <- function(input, output, session) {
  url <- payload_endpoint_url(session, "/data")
  print(paste("Send POST requests to:", url))
}
}

Run the code above in your browser using DataLab