Skip to content

Provide support to configure request interceptors in RestTestClient #35268

@wilkinsona

Description

@wilkinsona

WebTestClient allows one or more ExchangeFilterFunctions to be registered. Spring REST Docs uses such a filter for its WebTestClient integration. Support for filtering with RestTestClient would allow REST Docs to offer integration with RestTestClient when it's bound to a server. Note that when RestTestClient is bound to a MockMvc instance, it should be possible to use REST Docs' existing MockMvc integration so REST Docs users aren't complete prevented from using RestTestClient with the status quo.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions