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)
| 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. |