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
IHttpRequestget in interface IHttpRequestException - 可能产生的任何异常public IHttpResponse post() throws Exception
IHttpRequestpost in interface IHttpRequestException - 可能产生的任何异常public IHttpResponse head() throws Exception
IHttpRequesthead in interface IHttpRequestException - 可能产生的任何异常public IHttpResponse put() throws Exception
IHttpRequestput in interface IHttpRequestException - 可能产生的任何异常public IHttpResponse delete() throws Exception
IHttpRequestdelete in interface IHttpRequestException - 可能产生的任何异常public IHttpResponse patch() throws Exception
IHttpRequestpatch in interface IHttpRequestException - 可能产生的任何异常public IHttpResponse options() throws Exception
IHttpRequestoptions in interface IHttpRequestException - 可能产生的任何异常public IHttpResponse trace() throws Exception
IHttpRequesttrace in interface IHttpRequestException - 可能产生的任何异常Copyright © 2022. All rights reserved.