Close: #231
Signed-off-by: Seongmin Lee git@boltless.me
Close: #231
Signed-off-by: Seongmin Lee git@boltless.me
Close: #231
Signed-off-by: Seongmin Lee <git@boltless.me>
Close: #231
Signed-off-by: Seongmin Lee <git@boltless.me>
This will allow users to directly request archive from the knot without
using xrpc.
Xrpc doesn't fit here because it strips out the http headers which might
include valuable metadata like download filename or immutable link.
- remove xrpc method `sh.tangled.repo.archive`
- reimplement archive on knot as `/{owner}/{repo}/archive/{ref}`
endpoint
- appview will just proxy the request to knot on `/archive` like it is
doing for git http endpoints
- rename the `git_http.go` file to generalized `proxy_knot.go` filaname
Signed-off-by: Seongmin Lee <git@boltless.me>
Close: #231
Signed-off-by: Seongmin Lee <git@boltless.me>
sh.tangled.repo.archive
Xrpc is not a good way to implement this as Xrpc clients usually strips
out the response http headers.
The archive should be implemented in raw http endpoint instead like git
https endpoints
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
This will allow users to directly request archive from the knot without
using xrpc.
Xrpc doesn't fit here because it strips out the http headers which might
include valuable metadata like download filename or immutable link.
- implement archive on knot as `/{owner}/{repo}/archive/{ref}`
endpoint
- appview proxies the request to knot on `/archive` like it is doing for
git http endpoints.
if knot version isn't compatible, it will fallback to legacy xrpc
endpoint.
- rename the `git_http.go` file to generalized `proxy_knot.go` filaname
xrpc method `sh.tangled.repo.archive` will be deprecated in future
added `go-version` depenedency to make version constraints
Close: <https://tangled.org/tangled.org/core/issues/231>
Signed-off-by: Seongmin Lee <git@boltless.me>
sh.tangled.repo.archive
Xrpc is not a good way to implement this as Xrpc clients usually strips
out the response http headers.
The archive should be implemented in raw http endpoint instead like git
https endpoints
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
This will allow users to directly request archive from the knot without
using xrpc.
Xrpc doesn't fit here because it strips out the http headers which might
include valuable metadata like download filename or immutable link.
- implement archive on knot as `/{owner}/{repo}/archive/{ref}`
endpoint
- appview proxies the request to knot on `/archive` like it is doing for
git http endpoints.
if knot version isn't compatible, it will fallback to legacy xrpc
endpoint.
- rename the `git_http.go` file to generalized `proxy_knot.go` filaname
xrpc method `sh.tangled.repo.archive` will be deprecated in future
added `go-version` depenedency to make version constraints
Close: <https://tangled.org/tangled.org/core/issues/231>
Signed-off-by: Seongmin Lee <git@boltless.me>
/xrpc/sh.tangled.repo.archive endpoint
replaced by `/{did}/{reponame}/archive/{ref}`. The lexicon definitions
will be removed later.
Signed-off-by: Seongmin Lee <git@boltless.me>
link to related issue: #231