createContentDispositionHeader

protected fun createContentDispositionHeader(file: File, charset: Charset = StandardCharsets.UTF_8, locale: String = ""): BasicHeader

Создание заголовка "Content-Disposition".

В заголовке задается "filename" в формате "кодировка'локаль'имя_файла_urlencoded".

Return

Заголовок BasicHeader

Since

2.0.9

Parameters

file

Файл для отправки

charset

По умолчанию "UTF-8". Кодировка

locale

По умолчанию пустая строка. Локаль

See also