Skip to content

Allow path prefix in host argument. #101

@ggoggam

Description

@ggoggam

Sometimes users may want to proxy Oxen Backend via their own domain service without making changes to the Oxen Client. It would be nice to allow a prefix for host path.

For example, one may one to proxy any request made with /oxen path prefix to oxen server (with either rust or python client) like so:

# via python client
# repo = oxen.RemoteRepo(host="localhost:3000/oxen", repo_id="test/repo-1", scheme="http", revision="main")
GET /oxen/api/repos/:repo_id  -> GET /api/repos/:repo_id

without possibly having to interfere with their own existing API path. Currently, this is not allowed and any requests made like above will map like this:

GET /oxen/api/repos/:repo_id -> GET /api/repos/oxen/:repo_id

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions