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()
Gets 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 key to add.value - The value to associate with that key.public Optional<Object> getData(String key)
key - The key to find in the context.public HttpRequest getHttpRequest()
public HttpPipelineCallContext setHttpRequest(HttpRequest request)
request - The HTTP request.Copyright © 2021 Microsoft Corporation. All rights reserved.