-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed as not planned
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply
Description
Lots of existing (Spring) infrastructure accepts RestOperations
as a pluggable http/rest client and I could not find any adapter that implements the old RestOperations
, but is backed by the new RestClient
.
I know the RestClient
can be constructed from a RestTemplate
, but I would prefer - especially in a new/greenfield project - to base everything of the new RestClient
and have an adapter to map this back to RestOperations
when needed.
Are there plans for, or would you accept a PR for something along these lines ?
public class RestOperationsAdapter implements RestOperations {
public static RestOperationsAdapter create(RestClient restClient) {
....
}
....
}
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently apply