String (@NotNull Map<String, String> headers) { StringBuilder stringBuilder = new StringBuilder(); headers.forEach((k, v) -> { stringBuilder.append(k); stringBuilder.append('='); stringBuilder.append(v); stringBuilder.append(';'); }); if (!headers.isEmpty()) stringBuilder.deleteCharAt(stringBuilder.length() - 1); return stringBuilder.toString(); }