fact: 添加对 Http Header 的取值.

这个属于是忘记加了的, 原本就计划要弄.
This commit is contained in:
LamGC 2021-08-19 23:45:54 +08:00
parent 72685ef896
commit 3d8167b3b4
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -64,4 +64,12 @@ public final class HttpAccessResponse {
return entity;
}
/**
* 获取 Header.
* @param name Header 名称.
* @return 如果存在, 返回相应值, 否则返回 {@code null}.
*/
public String getHeader(String name) {
return headers.get(name);
}
}