Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17 apd hive file server #1

Open
wants to merge 7 commits into
base: spa-helper
Choose a base branch
from
Open

Conversation

eric-zhu
Copy link

Two main changes are made on this branch:

  • Support chunked files for both PUT and GET.
  • Add a config file option for command line.

Test cases are available in the hivefileserver repo.

For HEAD, the handler should return None data, which tells webobj only sending
headers to client.
Now handler.handle_put() gets a data generator no matter whether the data is
chunked or not. Then it handles data in the generator. For the file server, it
just writes each chunk of data into a file.
AttributeError: 'Storage' object has no attribute 'handle_put'
matches() should always return a handler rather the storage itself.
If the body is empty and its content length is 0, it should not be considered
as chunked encoding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant