MCPcopy Index your code
hub / github.com/reactive-python/reactpy / url

Method url

src/py/reactpy/reactpy/testing/backend.py:70–86  ·  view source on GitHub ↗

Return a URL string pointing to the host and point of the server Args: path: the path to a resource on the server query: a dictionary or list of query parameters

(self, path: str = "", query: Any | None = None)

Source from the content-addressed store, hash-verified

68 return self._records
69
70 def url(self, path: str = "", query: Any | None = None) -> str:
71 """Return a URL string pointing to the host and point of the server
72
73 Args:
74 path: the path to a resource on the server
75 query: a dictionary or list of query parameters
76 """
77 return urlunparse(
78 [
79 "http",
80 f"{self.host}:{self.port}",
81 path,
82 "",
83 urlencode(query or ()),
84 "",
85 ]
86 )
87
88 def list_logged_exceptions(
89 self,

Callers 1

gotoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected