encodeUrlPath function

Encode the Input for a URL Path Segment.

Encode the Input for a URL Path Segment.

Encodes the characters of the input so they are not interpreted as reserved characters in url strings. Will also encode non-ASCII unicode characters.

encodeUrlPath(x, ...) ## S4 method for signature 'D1Client' encodeUrlPath(x, pathSegment, ...)

Arguments

  • x: A D1Client object
  • ...: (Not yet used.)
  • pathSegment: : a string to encode

Returns

the encoded form of the input

Examples

## Not run: d1c <- D1Client("STAGING", "urn:node:mnStageUCSB2") fullyEncodedPath <- paste0("cn/v1/object/", encodeUrlPath(d1c, "doi:10.6085/AA/YBHX00_XXXITBDXMMR01_20040720.50.5")) ## End(Not run)

See Also

D1Clientclass description.

  • Maintainer: Matthew B. Jones
  • License: Apache License 2.0
  • Last published: 2022-06-10