Skip to content

Allow resource handling to be overridden #15

@pelson

Description

@pelson

Currently it is not possible to override the resource handling, and the current implementation of streaming is not always desirable (in fact, it is probably only desirable when you have a local cache, or you have a network segmented setup).

At the very least, it would be good to be able to override the HttpResponse handling, such that we could choose to return a RedirectResponse, and avoid having the streaming overhead on every simple-repository-server.

Perhaps something like a base class:

class ResourceHandler:
    def handle_HttpResponse(...)

Such that you can easily override it would be the simplest way to go

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