public final class HttpPipelineCallContext extends Object
| Modifier and Type | Method and Description |
|---|---|
Optional<Object> |
getData(String key)
Gets a value with the given key stored in the context.
|
HttpRequest |
getHttpRequest()
Get the http request.
|
void |
setData(String key,
Object value)
Stores a key-value data in the context.
|
HttpPipelineCallContext |
setHttpRequest(HttpRequest request)
Sets the http request object in the context.
|
public void setData(String key, Object value)
key - the keyvalue - the valuepublic Optional<Object> getData(String key)
key - the keypublic HttpRequest getHttpRequest()
public HttpPipelineCallContext setHttpRequest(HttpRequest request)
request - request objectCopyright © 2019 Microsoft Corporation. All rights reserved.