Skip to contents

Generate the absolute URL for the payload endpoint

Usage

payload_endpoint_url(session, path = "/ingress")

Arguments

session

The Shiny session object

path

The URL path (default "/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.

Examples

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