Opened 9 years ago

#6252 enhancement new

Add a function to discard the body of a HTTP request.

Reported by: Tom Prince Owned by:
Priority: normal Milestone:
Component: web Keywords:
Cc: jknight Branch:


The web-client howto indicates that if you don't care about the body of a response, you should either use a HEAD request or call IResponse.deliverBody with a protocol that immediately calls IProducer.stopProducing on the transport. Otherwise, the connection will be held open.

The former isn't possible, if the request being made isn't a C{GET} request, so for those cases, a helper function should be provided, to make it easy to close the connection.

Change History (1)

comment:1 Changed 9 years ago by DefaultCC Plugin

Cc: jknight added
Note: See TracTickets for help on using tickets.