view stubs/treq/content.pyi @ 48:7c3cd440619b

switch to treq http client Ignore-this: fde2ba73c2d74ed372a1f0be8771c5a
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 27 May 2019 10:47:44 +0000
parents 4f71d2a7a8d1
children
line wrap: on
line source

# Stubs for treq.content (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.

from twisted.internet.protocol import Protocol
from typing import Any

class _BodyCollector(Protocol):
    finished: Any = ...
    collector: Any = ...
    def __init__(self, finished: Any, collector: Any) -> None: ...
    def dataReceived(self, data: Any) -> None: ...
    def connectionLost(self, reason: Any) -> None: ...

def collect(response: Any, collector: Any): ...
def content(response: Any): ...
def json_content(response: Any, **kwargs: Any): ...
def text_content(response: Any, encoding: str = ...): ...