public final class RqMtBase extends Object implements RqMultipart
multipart/form-data
format (RFC 2045).
For application/x-www-form-urlencoded
format use RqForm
.
It is highly recommended to use RqGreedy
decorator before passing request to this class.
The class is immutable and thread-safe.
RqGreedy
public RqMtBase(Request req) throws IOException
req
- Original requestIOException
- If failspublic Iterable<Request> part(CharSequence name)
RqMultipart
part
in interface RqMultipart
name
- Name of the part to getpublic Iterable<String> names()
RqMultipart
names
in interface RqMultipart
public Iterable<String> head() throws IOException
Request
head
in interface Request
IOException
- If something goes wrongpublic InputStream body() throws IOException
Request
body
in interface Request
IOException
- If something goes wrongCopyright © 2015–2017 Take. All rights reserved.