MCPcopy
hub / github.com/httpie/cli / write

Method write

tests/utils/__init__.py:115–121  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

113 super().__init__(*args, **kwargs)
114
115 def write(self, data):
116 try:
117 self.original_buffer.write(data.decode(UTF8))
118 except UnicodeDecodeError:
119 self.original_buffer.write(self.encoder.substitute(data))
120 finally:
121 self.original_buffer.flush()
122
123
124class StdinBytesIO(BytesIO):

Callers 15

dump_requestFunction · 0.45
workerFunction · 0.45
raw_mainFunction · 0.45
separateFunction · 0.45
print_debug_infoFunction · 0.45
write_messageFunction · 0.45
write_streamFunction · 0.45
_prompt_passwordMethod · 0.45
mainFunction · 0.45
upgrade_sessionFunction · 0.45
cli_check_updatesFunction · 0.45

Calls 2

decodeMethod · 0.80
substituteMethod · 0.80

Tested by 2

test_download_resumedMethod · 0.36
test_fetch_broken_jsonFunction · 0.36