| Modifier and Type | Class and Description |
|---|---|
static class |
VRequest.Builder<T extends VRequest.Builder<T>>
A builder for VRequest class.
|
Request.Method| Modifier | Constructor and Description |
|---|---|
|
VRequest(String url)
Constructs an instance of venom request.
|
|
VRequest(String url,
Map<String,String> headers)
Constructs an instance of venom request.
|
protected |
VRequest(VRequest.Builder<?> builder)
Constructs an instance of venom request.
|
| Modifier and Type | Method and Description |
|---|---|
static VRequest.Builder |
build(Request.Method method,
String url)
Create a new instance of builder with a method and url.
|
String |
getBody()
Returns the request body of the request or null if none specified.
|
Map<String,String> |
getHeaders()
Returns the headers set for the request.
|
Request.Method |
getMethod()
Returns the method type of the request.
|
org.apache.http.HttpHost |
getProxy()
Returns the proxy set to be used for the request or default to
fetcher if none specified.
|
SleepScheduler |
getSleepScheduler()
Returns information about the amount of sleep before this request
is made.
|
String |
getUrl()
Returns the url of the request.
|
public VRequest(String url)
url - The url for this request.public VRequest(String url, Map<String,String> headers)
url - The url for this requestheaders - The headers to append for this requestprotected VRequest(VRequest.Builder<?> builder)
builder - An instance of builderpublic static VRequest.Builder build(Request.Method method, String url)
method - Request methodurl - Request urlpublic final Request.Method getMethod()
Requestpublic final String getBody()
Requestpublic final String getUrl()
Requestpublic final Map<String,String> getHeaders()
RequestgetHeaders in interface Requestpublic final org.apache.http.HttpHost getProxy()
Requestpublic final SleepScheduler getSleepScheduler()
RequestgetSleepScheduler in interface RequestCopyright © 2018. All rights reserved.