public class DefaultHttpRequest extends Object implements IHttpRequest
Constructor and Description |
---|
DefaultHttpRequest(HttpRequestBuilder httpRequestBuilder) |
Modifier and Type | Method and Description |
---|---|
IHttpResponse |
delete()
执行DELETE请求
|
IHttpResponse |
get()
执行GET请求
|
IHttpResponse |
head()
执行HEAD请求
|
IHttpResponse |
options()
执行OPTIONS请求
|
IHttpResponse |
patch()
执行PATCH请求
|
IHttpResponse |
post()
执行POST请求
|
IHttpResponse |
put()
执行PUT请求
|
IHttpResponse |
trace()
执行TRACE请求
|
public DefaultHttpRequest(HttpRequestBuilder httpRequestBuilder)
public IHttpResponse get() throws Exception
IHttpRequest
get
in interface IHttpRequest
Exception
- 可能产生的任何异常public IHttpResponse post() throws Exception
IHttpRequest
post
in interface IHttpRequest
Exception
- 可能产生的任何异常public IHttpResponse head() throws Exception
IHttpRequest
head
in interface IHttpRequest
Exception
- 可能产生的任何异常public IHttpResponse put() throws Exception
IHttpRequest
put
in interface IHttpRequest
Exception
- 可能产生的任何异常public IHttpResponse delete() throws Exception
IHttpRequest
delete
in interface IHttpRequest
Exception
- 可能产生的任何异常public IHttpResponse patch() throws Exception
IHttpRequest
patch
in interface IHttpRequest
Exception
- 可能产生的任何异常public IHttpResponse options() throws Exception
IHttpRequest
options
in interface IHttpRequest
Exception
- 可能产生的任何异常public IHttpResponse trace() throws Exception
IHttpRequest
trace
in interface IHttpRequest
Exception
- 可能产生的任何异常Copyright © 2022. All rights reserved.