Skip to content
Snippets Groups Projects
  • Will McCutchen's avatar
    1229cc69
    Improve tests for streaming response endpoints (#105) · 1229cc69
    Will McCutchen authored
    A few small improvements to the test suite:
    - Ensure `/stream` and `/stream-bytes` endpoints actually use
    `Transfer-Encoding: chunked`, instead of inferring/hoping based on
    Content-Length header
    - Explicitly test that `/drip` actually does sleep between writing
    bytes, rather than inferring that it does based on entire response
    duration
    1229cc69
    History
    Improve tests for streaming response endpoints (#105)
    Will McCutchen authored
    A few small improvements to the test suite:
    - Ensure `/stream` and `/stream-bytes` endpoints actually use
    `Transfer-Encoding: chunked`, instead of inferring/hoping based on
    Content-Length header
    - Explicitly test that `/drip` actually does sleep between writing
    bytes, rather than inferring that it does based on entire response
    duration