Skip to content
  1. Jul 21, 2023
  2. Jul 20, 2023
  3. Jul 17, 2023
  4. Jul 16, 2023
  5. Jul 15, 2023
  6. Jul 13, 2023
  7. Jan 30, 2023
  8. Jan 29, 2023
  9. Jan 28, 2023
  10. Jan 27, 2023
  11. Jan 26, 2023
  12. Jan 25, 2023
  13. Dec 14, 2022
    • Dom Sekotill's avatar
      Warn if Session.body.write called in async iter context · ba0b5eb0
      Dom Sekotill authored
      A warning will be issued in the following situation:
      
      ```
      >>> def filter(session: Session):
      ...   async with session.body as body_iter:
      ...     await session.body.write(b"spam")
      
      >>> test_runner(filter)
      UserWarning: it looks as if BodyAccessor.write() was called on an
      instance from within it's own async context
        await session.body.write(b"spam")
      ```
      ba0b5eb0
    • Dom Sekotill's avatar
      Move skip attribute to BodyAccessor · c3bf8f3c
      Dom Sekotill authored
      Moved the boolean 'skip' attribute from `Session` to `BodyAccessor` as
      it seems a more logical place for it. Although users *shouldn't* modify
      the attribute, if they do it *may* work and this is a better place for
      them to find it.
      c3bf8f3c
  14. Dec 13, 2022
  15. Nov 14, 2022
  16. Nov 11, 2022
Loading