#13 Request class: Add methods to send data in chunks

Open
opened 8 months ago by ncc1988 · 3 comments
ncc1988 commented 8 months ago
Owner

The Request class in the network-refactorisation1 branch doesn't have methods to send request data in chunks.

Methods to do this shall be added, working in "reverse" compared to the methods that allow reading response data in chunks.

Implementation can start as soon as #9 is finished.

The Request class in the network-refactorisation1 branch doesn't have methods to send request data in chunks. Methods to do this shall be added, working in "reverse" compared to the methods that allow reading response data in chunks. Implementation can start as soon as #9 is finished.
ncc1988 added this to the Version 0.0.1 - "Uyghur lives matter!" milestone 8 months ago
ncc1988 self-assigned this 8 months ago
ncc1988 changed title from Request class: Add request buffer to Request class: Add request buffer and methods for it 8 months ago
ncc1988 changed title from Request class: Add request buffer and methods for it to Request class: Add methods to send data in chunks 8 months ago
ncc1988 commented 8 months ago
Poster
Owner

This is already part of #9:

Implement Request::send: Pass the (raw) data to the network handler.

This is already part of #9: > Implement Request::send: Pass the (raw) data to the network handler.
ncc1988 added the
TODO
label 8 months ago
ncc1988 added the
enhancement
label 3 months ago
ncc1988 added the
wiki-doc-TODO
label 3 months ago
ncc1988 commented 1 month ago
Poster
Owner

This is already part of #9

No it isn't. The send method can only send a header, but no body. HTTP GET works, but HTTP POST or PUT will not work with the current code.

TODO:

> This is already part of #9 No it isn't. The send method can only send a header, but no body. HTTP GET works, but HTTP POST or PUT will not work with the current code. TODO: - [ ] Add a RequestDataSource base class that defines methods for a data source that can deliver data to a Request object. That class can be used to send raw data over the network when used with the base Request class or the request class of another protocol that allows raw data. - [ ] Add a HTTPRequestDataSource implementation that can be configured to output provided data in several formats used by HTTP requests (multipart/form-data, application/x-www-form-urlencoded, ...). The HTTPDataSource class shall allow selecting binary sources (files) and form parameters. - [ ] Add the method Request::setDataSource that accepts a RequestDataSource instance. - [ ] Extend the test for the Request class. - [ ] ... and the HTTPRequest class. - [ ] Write a test for the RequestDataSource - [ ] ... and the HTTPRequestDataSource class.
ncc1988 added the
DOING
label 1 month ago
ncc1988 removed the
TODO
label 1 month ago
ncc1988 commented 2 weeks ago
Poster
Owner

TODO changed: RequestDataSource is now a base class for raw request data instead of just defining the interface.

TODO changed: RequestDataSource is now a base class for raw request data instead of just defining the interface.
Sign in to join this conversation.
Loading…
There is no content yet.