Skip to content

RestTemplate can't set timeout pre request [SPR-17624] #22156

@spring-projects-issues

Description

@spring-projects-issues

ailin zhou opened SPR-17624 and commented

Use RestTemplate send request to difference url, we want different request have different SocketTimeout parameter. 

Currently RestTemplate doesn't have any interface costum timeout for pre request. 

The HttpComponentsClientHttpRequestFactory can custum RequestConfig but when use with RestTemplate we have no chance to set timeout parameter.


No further details from SPR-17624

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions