Class HttpHeaders.HeaderParsingFakeLevelHttpRequest
java.lang.Object
com.google.api.client.http.LowLevelHttpRequest
com.google.api.client.http.HttpHeaders.HeaderParsingFakeLevelHttpRequest
- Enclosing class:
HttpHeaders
LowLevelHttpRequest which will call the .parseHeader() method for every header added.
- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpHeaders.ParseHeaderStateprivate final HttpHeaders -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a header to the HTTP request.execute()Executes the request and returns a low-level HTTP response object.Methods inherited from class LowLevelHttpRequest
getContentEncoding, getContentLength, getContentType, getStreamingContent, setContentEncoding, setContentLength, setContentType, setStreamingContent, setTimeout, setWriteTimeout
-
Field Details
-
target
-
state
-
-
Constructor Details
-
HeaderParsingFakeLevelHttpRequest
HeaderParsingFakeLevelHttpRequest(HttpHeaders target, HttpHeaders.ParseHeaderState state)
-
-
Method Details
-
addHeader
Description copied from class:LowLevelHttpRequestAdds a header to the HTTP request.Note that multiple headers of the same name need to be supported, in which case
LowLevelHttpRequest.addHeader(String, String)will be called for each instance of the header.- Specified by:
addHeaderin classLowLevelHttpRequest- Parameters:
name- header namevalue- header value
-
execute
Description copied from class:LowLevelHttpRequestExecutes the request and returns a low-level HTTP response object.- Specified by:
executein classLowLevelHttpRequest- Throws:
IOException
-