public interface HttpExecutor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DELETE |
static java.lang.String |
GET
HTTP methods
|
static java.lang.String |
HEAD |
static java.lang.String |
POST |
static java.lang.String |
PUT |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
execute(HttpRequest request)
Synchronously send the request, and return its response.
|
static final java.lang.String GET
static final java.lang.String HEAD
static final java.lang.String POST
static final java.lang.String PUT
static final java.lang.String DELETE
HttpResponse execute(HttpRequest request) throws java.io.IOException
java.io.IOException
- if a problem occurred talking to the server.java.lang.RuntimeException
- (and subclasses) if an unexpected error occurs creating the request.