Closed silgon closed 7 years ago
hi @silgon
That docs say also: If you are using an HTTP 1.0 client, ensure it supports the keep-alive directive and submit the header Connection: Keep-Alive with your request.
Keep-Alive is part of the protocol in HTTP 1.1 and enabled by default on compliant clients. However, you will have to ensure your implementation does not set the connection header to other values.
oandapyV20 makes use of the requests library, http://docs.python-requests.org/en/master/, and that does HTTP 1.1. Therefore it is not set.
Thanks for the reply! Just wanted to know. Nice library btw. =)
thanks
This is more a question than an issue. It's about the best practices section of the developer references (http://developer.oanda.com/rest-live-v20/best-practices/). They say that you should add a http header with the following content
Connection: Keep-Alive
. However I rangrep -rn "Connection" .
in this repository and I found nothing. I would like to know if you consider this.