Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/g/e/gevent-fastcgi-HEAD/gevent_fastcgi/server.py   gevent-fastcgi(Download)
    StderrStream,
)
from .utils import (
    pack_pairs,
    unpack_pairs,
    def handle_begin_request_record(self, record):
        role, flags = unpack_begin_request(record.content)
        if role != self.role:
            self.send_record(FCGI_END_REQUEST, pack_end_request(
                0,  FCGI_UNKNOWN_ROLE), record.request_id)

src/g/e/gevent-fastcgi-1.0/gevent_fastcgi/server.py   gevent-fastcgi(Download)
    StderrStream,
)
from .utils import (
    pack_pairs,
    unpack_pairs,
    def handle_begin_request_record(self, record):
        role, flags = unpack_begin_request(record.content)
        if role != self.role:
            self.send_record(FCGI_END_REQUEST, pack_end_request(
                0,  FCGI_UNKNOWN_ROLE), record.request_id)

src/g/e/gevent-fastcgi-HEAD/gevent_fastcgi/test/base/test_utils.py   gevent-fastcgi(Download)
    def test_pack_unpack_begin_request(self):
        from ...const import FCGI_AUTHORIZER, FCGI_KEEP_CONN
        from ...utils import pack_begin_request, unpack_begin_request
 
        raw_data = (FCGI_AUTHORIZER, FCGI_KEEP_CONN)
        assert raw_data == unpack_begin_request(pack_begin_request(*raw_data))