FormBody

Constructors

this
this(string[] encodedNames, string[] encodedValues)
Undocumented in source.

Members

Classes

Builder
class Builder
Undocumented in source.

Functions

contentLength
long contentLength()
Undocumented in source. Be warned that the author may not have intended to support it.
contentType
string contentType()
Undocumented in source. Be warned that the author may not have intended to support it.
encodedName
string encodedName(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
encodedValue
string encodedValue(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
size
int size()

The number of key-value pairs in this form-encoded body.

value
string value(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
writeTo
void writeTo(HttpOutputStream sink)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

CONTENT_TYPE
enum CONTENT_TYPE;
Undocumented in source.

Inherited Members

From HttpBody

contentType
string contentType()
Undocumented in source.
contentLength
long contentLength()

Returns the number of bytes that will be written to {@code sink} in a call to {@link #writeTo}, or -1 if that count is unknown.

append
void append(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
append
void append(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
writeTo
void writeTo(HttpOutputStream sink)

Writes the content of this request to {@code sink}.

asString
string asString()
Undocumented in source. Be warned that the author may not have intended to support it.
getRaw
const(ubyte)[] getRaw()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
create
HttpBody create(T content)
Undocumented in source. Be warned that the author may not have intended to support it.
create
HttpBody create(string contentType, long contentLength)
Undocumented in source. Be warned that the author may not have intended to support it.
create
HttpBody create(string contentType, string content)

Returns a new request body that transmits {@code content}. If {@code contentType} is non-null and lacks a charset, this will use UTF-8.

create
HttpBody create(string contentType, ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
create
HttpBody create(string type, const(ubyte)[] content)

Returns a new request body that transmits {@code content}.

createFromFile
HttpBody createFromFile(string type, string fileName)

Returns a new request body that transmits the content of {@code file}.

Meta