API referencehttp
ovok_sdk.http.url
URL path and query encoding.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.25+2ba84b0
URL path and query encoding.
join_path()
join_path(*parts: str = ()) -> strJoin path parts with single slashes, dropping empty parts and outer slashes.
path_segment()
path_segment(value: str) -> strPercent-encode value for use as one path segment, including any /.
to_query_string()
to_query_string(params: QueryParams) -> strOvok's encoding: ?a=1&b=x,y, a list comma-joined and None skipped.
Returns
str: The query string with its leading?, or""when there are no parameters.
to_search_query()
to_search_query(params: QueryParams) -> strFHIR's encoding: a list repeats its key, which FHIR reads as AND; write "a,b" for OR.
Returns
str: The query string with its leading?, or""when there are no parameters.
Last updated on