MCPcopy Create free account
hub / github.com/BaseXdb/basex / writeHeader

Method writeHeader

basex-core/src/main/java/org/basex/util/http/Client.java:268–271  ·  view source on GitHub ↗

Writes a single header. @param key key @param value value @param out output stream @throws IOException I/O exception

(final String key, final String value, final OutputStream out)

Source from the content-addressed store, hash-verified

266 * @throws IOException I/O exception
267 */
268 private static void writeHeader(final String key, final String value, final OutputStream out)
269 throws IOException {
270 out.write(Token.concat(key, ": ", value, CRLF));
271 }
272
273 /**
274 * Writes the payload of a body or part in the output stream of the connection.

Callers 1

payloadMethod · 0.95

Calls 2

concatMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected