| 程序包 | 说明 |
|---|---|
| com.jn.langx.http |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpMethod |
HttpHeaders.getAccessControlRequestMethod()
Return the value of the
Access-Control-Request-Method request header. |
static HttpMethod |
HttpMethod.resolve(String method)
Resolve the given method value to an
HttpMethod. |
static HttpMethod |
HttpMethod.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpMethod[] |
HttpMethod.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<HttpMethod> |
HttpHeaders.getAccessControlAllowMethods()
Return the value of the
Access-Control-Allow-Methods response header. |
Set<HttpMethod> |
HttpHeaders.getAllow()
Return the set of allowed
HTTP methods,
as specified by the Allow header. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpHeaders.setAccessControlRequestMethod(HttpMethod requestMethod)
Set the (new) value of the
Access-Control-Request-Method request header. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpHeaders.setAccessControlAllowMethods(List<HttpMethod> allowedMethods)
Set the (new) value of the
Access-Control-Allow-Methods response header. |
void |
HttpHeaders.setAllow(Set<HttpMethod> allowedMethods)
Set the set of allowed
HTTP methods,
as specified by the Allow header. |
Copyright © 2021. All rights reserved.