public class Request extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DELETE |
static String |
GET |
static String |
PATCH |
static String |
POST |
static String |
PUT |
Constructor and Description |
---|
Request(String method,
String url) |
Request(String method,
String url,
String body) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getBody() |
Map<String,String> |
getHeaders() |
String |
getMethod() |
Map<String,List<String>> |
getQuery() |
String |
getRequestLine() |
URI |
getUri() |
String |
getUrl() |
int |
hashCode() |
protected static String |
mapToQuery(Map<String,List<String>> in) |
String |
toString() |
Request |
withHeader(String key,
String value) |
Request |
withHeaders(Map<String,String> headers) |
Request |
withQueryParam(String key,
String value) |
Request |
withUrl(String url) |
public static final String GET
public static final String DELETE
public static final String POST
public static final String PUT
public static final String PATCH
Copyright © 2023. All rights reserved.