Skip to content
module

rsconnect.http_support

HTTP support wrappers and utility functions

Classes
  • HTTPResponse This class represents the result of executing an HTTP request.</>
  • HTTPServer This class provides the means to simply and directly invoke HTTP requests against a server.</>
Functions
  • append_to_path(uri, path) This is a helper function for appending a path to a URI (i.e, just the path portion of a full URL). The main purpose is to make sure one and only one slash ends up between them.</>
function

rsconnect.http_support.append_to_path(uri, path)

This is a helper function for appending a path to a URI (i.e, just the path portion of a full URL). The main purpose is to make sure one and only one slash ends up between them.

:param uri: the URI to append the path to. :param path: the path to append. :return: the result of the append.

class

rsconnect.http_support.HTTPResponse(full_uri, response=None, body=None, exception=None)

This class represents the result of executing an HTTP request.

class

rsconnect.http_support.HTTPServer(url, disable_tls_check=False, ca_data=None, cookies=None, timeout=30)

This class provides the means to simply and directly invoke HTTP requests against a server.