HttpRequest.setHeaderField(String field, String value) 方法

定义

Sets the header field to the given value.

public HttpRequest setHeaderField(String field, String value)

参数

field
String

The header field name.

value
String

The header field value.

返回

The object itself, for fluent setting.

适用于