Skip to content

Upgrading aiohttp 0.19 to 0.20

Breaking0.19.0 → 0.20.2Breaking2New8Changed5Fixed9Other1

BreakingUpgrade verdict

2 breaking changes.

  • Code calling read_and_close() must switch to another way of reading and closing the response.
  • Code that assigned to these message properties will now fail.
2 items need code or config changes
Breaking2
Removes the long deprecated ClientResponse.read_and_close() method.
ClientResponse.read_and_close()
Makes some low-level message properties readonly.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: class AbstractView
  • added: constructor AbstractView(request)
  • added: property AbstractView.request
  • added: variable PY_35
  • changed: function ws_connect(url, *, protocols=…, timeout=…, connector=…, auth=…, ws_response_class=…, autoclose=…, autoping=…, loop=…, origin=…) → function ws_connect(url, *, protocols=…, timeout=…, connector=…, auth=…, ws_response_class=…, autoclose=…, autoping=…, loop=…, origin=…, headers=…)
  • removed: method ClientResponse.read_and_close(decode=…)
  • removed: constructor WSServerHandshakeError(message, *, headers=…)
  • added: variable METH_ALL
  • removed: field HttpMessage.status
  • removed: field HttpMessage.status_line
  • added: method HttpMessage.autochunked()
  • added: method Request.autochunked()
  • added: method Request.status_line()
  • added: method Response.autochunked()
  • added: method Response.status_line()
  • added: property HttpMessage.status_line
  • added: property HttpMessage.version
  • added: property Request.method
  • added: property Request.path
  • added: property Response.reason
  • added: property Response.status
  • changed: method StreamReader.read_nowait() → method StreamReader.read_nowait(n=…)
  • added: class HTTPMisdirectedRequest(HTTPClientError)
  • added: class HTTPNetworkAuthenticationRequired(HTTPServerError)
  • added: class HTTPNotExtended(HTTPServerError)
  • added: class HTTPPermanentRedirect(_HTTPMove)
  • added: class HTTPPreconditionRequired(HTTPClientError)
  • added: class HTTPRequestHeaderFieldsTooLarge(HTTPClientError)
  • added: class HTTPTooManyRequests(HTTPClientError)
  • added: class HTTPUpgradeRequired(HTTPClientError)
  • added: class HTTPVariantAlsoNegotiates(HTTPServerError)
  • added: field HTTPMisdirectedRequest.status_code
  • added: field HTTPNetworkAuthenticationRequired.status_code
  • added: field HTTPNotExtended.status_code
  • added: field HTTPPermanentRedirect.status_code
  • added: field HTTPPreconditionRequired.status_code
  • added: field HTTPRequestHeaderFieldsTooLarge.status_code
  • added: field HTTPTooManyRequests.status_code
  • added: field HTTPUpgradeRequired.status_code
  • added: field HTTPVariantAlsoNegotiates.status_code
  • added: method StreamResponse.set_tcp_cork(value)
  • added: method StreamResponse.set_tcp_nodelay(value)
  • added: property StreamResponse.tcp_cork
  • added: property StreamResponse.tcp_nodelay
  • added: class View(AbstractView)