インターフェースの使用
org.springframework.test.web.reactive.server.WebTestClient.RequestBodySpec
org.springframework.test.web.reactive.server 内の WebTestClient.RequestBodySpec 使用
修飾子と型メソッド説明WebTestClient.RequestBodySpec.contentLength
(long contentLength) Content-Length
ヘッダーで指定されているように、本文の長さをバイト単位で設定します。WebTestClient.RequestBodySpec.contentType
(MediaType contentType) Content-Type
ヘッダーで指定されているように、本文のメディア型を設定します。