- java.lang.Object
-
- net.dongliu.cute.http.HTTPHeader
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object o)inthashCode()Stringname()Return the namebooleannameCaseSensitive()If names are case sensitivestatic HTTPHeaderof(String name, boolean value)Create new header, with boolean valuestatic HTTPHeaderof(String name, long value)Create new header, with long valuestatic HTTPHeaderof(String name, String value)Create new Header.static HTTPHeaderof(String name, Instant instant)Create new header, with instantstatic HTTPHeaderof(String name, OffsetDateTime dateTime)Create new header, with datetime valuestatic HTTPHeaderof(String name, ZonedDateTime dateTime)Create new header, with datetime valuestatic HTTPHeaderof(String name, Date date)Create new header, with date valueStringtoString()Stringvalue()Return the value-
从接口继承的方法 net.dongliu.cute.http.NameValue
nameEquals
-
-
-
-
方法详细资料
-
of
public static HTTPHeader of(String name, Date date)
Create new header, with date value
-
of
public static HTTPHeader of(String name, ZonedDateTime dateTime)
Create new header, with datetime value
-
of
public static HTTPHeader of(String name, OffsetDateTime dateTime)
Create new header, with datetime value
-
of
public static HTTPHeader of(String name, Instant instant)
Create new header, with instant
-
of
public static HTTPHeader of(String name, long value)
Create new header, with long value
-
of
public static HTTPHeader of(String name, boolean value)
Create new header, with boolean value
-
of
public static HTTPHeader of(String name, String value)
Create new Header.- 参数:
name- the header namevalue- the header value- 返回:
- the header
-
nameCaseSensitive
public boolean nameCaseSensitive()
从接口复制的说明:NameValueIf names are case sensitive- 指定者:
nameCaseSensitive在接口中NameValue
-
-