BiodbUrl {biodb} | R Documentation |
Class URL.
Class URL.
This class represents a URL object that can be used in requests.
new()
Constructor.
BiodbUrl$new(url = character(), params = character())
url
The URL to access, as a character vector.
params
The list of parameters to append to this URL.
A new instance.
getDomain()
Gets the domain.
BiodbUrl$getDomain()
None.
setUrl()
Sets the base URL string.
BiodbUrl$setUrl(url)
url
The base URL string.
None.
setParam()
Sets a parameter.
BiodbUrl$setParam(key, value)
key
The parameter name.
value
The value of the parameter.
None.
print()
Displays information about this instance.
BiodbUrl$print()
None.
toString()
Gets the URL as a string representation.
BiodbUrl$toString(encode = TRUE)
encode
If set to TRUE, then encodes the URL.
The URL as a string, with all parameters and values set.
clone()
The objects of this class are cloneable with this method.
BiodbUrl$clone(deep = FALSE)
deep
Whether to make a deep clone.
BiodbRequestScheduler
, BiodbRequest
.
# Create a URL object u <- c("https://www.uniprot.org", "uniprot") p <- c(query="reviewed:yes+AND+organism:9606", columns='id,entry name,protein names', format="tab") url <- BiodbUrl$new(url=u, params=p) url$toString()