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

[XrdHttp] Allow streaming HTTP ("Transfer-Encoding: chunked") responses #622

Closed
bbockelm opened this issue Nov 13, 2017 · 1 comment
Closed

Comments

@bbockelm
Copy link
Contributor

For implementing the COPY requests with performance markers, we need to be able to respond using chunked transfer encoding (see: https://en.wikipedia.org/wiki/Chunked_transfer_encoding).

This would require a external handler interface that looks something like this:

XrdHttpExtReq::StartChunkedResp(int code, char *desc, char *header_to_add, char *body);
XrdHttpExtReq::ChunkResp(char *body, long long bodylen);

where a session would look like

req.StartChunkedResp(201, "OK", NULL);
req.ChunkResp("chunk 1", 0);
req.ChunkResp("chunk 2", 0);
req.ChunkResp(NULL, 0);

where ChunkResp(NULL, 0) indicates to send an end-of-response.

Would this be possible?

@abh3
Copy link
Member

abh3 commented Feb 1, 2018

Fxed

@abh3 abh3 closed this as completed Feb 1, 2018
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

No branches or pull requests

2 participants