MCPcopy
hub / github.com/postmanlabs/httpbin / generate_bytes

Function generate_bytes

httpbin/core.py:590–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588
589 pause = duration / numbytes
590 def generate_bytes():
591 for i in xrange(numbytes):
592 yield u"*".encode('utf-8')
593 time.sleep(pause)
594
595 response = Response(generate_bytes(), headers={
596 "Content-Type": "application/octet-stream",

Callers 3

dripFunction · 0.85
stream_random_bytesFunction · 0.85
range_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…