Async::HTTP::Client#call retries on connection errors (EOFError, etc.) only when request.idempotent? returns true.
The current implementation of Protocol::HTTP::Request#idempotent? is hardcoded to return false for POST requests. But I'd like to be able to override this behavior.
Would you be open to adding an idempotent parameter to Protocol::HTTP::Request for overriding the method-based heuristic?
Async::HTTP::Client#callretries on connection errors (EOFError, etc.) only whenrequest.idempotent?returns true.The current implementation of
Protocol::HTTP::Request#idempotent?is hardcoded to return false for POST requests. But I'd like to be able to override this behavior.Would you be open to adding an
idempotentparameter toProtocol::HTTP::Requestfor overriding the method-based heuristic?