public final class RqMethod extends Object implements Request
Modifier and Type | Field and Description |
---|---|
static String |
DELETE
DELETE method.
|
static String |
GET
GET method.
|
static String |
HEAD
HEAD method.
|
static String |
OPTIONS
OPTIONS method.
|
static String |
PATCH
PATCH method.
|
static String |
POST
POST method.
|
static String |
PUT
PUT method.
|
public static final String GET
public static final String POST
public static final String PUT
public static final String DELETE
public static final String HEAD
public static final String OPTIONS
public static final String PATCH
public RqMethod(Request req)
req
- Original requestpublic String method() throws IOException
IOException
- If failspublic List<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 Takes. All rights reserved.