Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
violetagg committed Oct 3, 2022
1 parent 87bb135 commit 3723877
Showing 1 changed file with 40 additions and 40 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019-2021 VMware, Inc. or its affiliates, All Rights Reserved.
* Copyright (c) 2019-2022 VMware, Inc. or its affiliates, All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,47 +29,47 @@
*/
public interface HttpClientInfos extends HttpInfos {

/**
* Return the current {@link Context} associated with the Mono/Flux exposed
* via {@link HttpClient.ResponseReceiver#response()} or related terminating API.
*
* @return the current user {@link Context}
* @deprecated Use {@link #currentContextView()}. This method
* will be removed in version 1.1.0.
*/
@Deprecated
Context currentContext();
/**
* Return the current {@link Context} associated with the Mono/Flux exposed
* via {@link HttpClient.ResponseReceiver#response()} or related terminating API.
*
* @return the current user {@link Context}
* @deprecated Use {@link #currentContextView()}. This method
* will be removed in version 1.1.0.
*/
@Deprecated
Context currentContext();

/**
* Return the current {@link ContextView} associated with the Mono/Flux exposed
* via {@link HttpClient.ResponseReceiver#response()} or related terminating API.
*
* @return the current user {@link ContextView}
* @since 1.0.0
*/
ContextView currentContextView();
/**
* Return the current {@link ContextView} associated with the Mono/Flux exposed
* via {@link HttpClient.ResponseReceiver#response()} or related terminating API.
*
* @return the current user {@link ContextView}
* @since 1.0.0
*/
ContextView currentContextView();

/**
* Return the previous redirections or empty array
*
* @return the previous redirections or empty array
*/
String[] redirectedFrom();
/**
* Return the previous redirections or empty array
*
* @return the previous redirections or empty array
*/
String[] redirectedFrom();

/**
* Return outbound headers to be sent
*
* @return outbound headers to be sent
*/
HttpHeaders requestHeaders();
/**
* Return outbound headers to be sent
*
* @return outbound headers to be sent
*/
HttpHeaders requestHeaders();

/**
* Return the fully qualified URL of the requested resource. In case of redirects, return the URL the last
* redirect led to.
*
* @return The URL of the retrieved resource. This method can return null in case there was an error before the
* client could create the URL
*/
@Nullable
String resourceUrl();
/**
* Return the fully qualified URL of the requested resource. In case of redirects, return the URL the last
* redirect led to.
*
* @return The URL of the retrieved resource. This method can return null in case there was an error before the
* client could create the URL
*/
@Nullable
String resourceUrl();
}

0 comments on commit 3723877

Please sign in to comment.