共用方式為


HttpClientTests.BinaryDataTestConsumer Interface

public static interface HttpClientTests.BinaryDataTestConsumer

Interface defining a consumer that accepts a URL, BinaryData, HttpClient, and byte[] used to test sending BinaryData to an endpoint.

Method Summary

Modifier and Type Method and Description
abstract void accept(URL requestUrl, BinaryData binaryData, HttpClient httpClient, byte[] expectedResponseBody)

Accepts a URL, BinaryData, HttpClient, and byte[] used to test sending BinaryData to an endpoint.

Method Details

accept

public abstract void accept(URL requestUrl, BinaryData binaryData, HttpClient httpClient, byte[] expectedResponseBody)

Accepts a URL, BinaryData, HttpClient, and byte[] used to test sending BinaryData to an endpoint.

Parameters:

requestUrl - The URL to send the request to.
binaryData - The BinaryData to send in the request.
httpClient - The HttpClient to use to send the request.
expectedResponseBody - The expected bytes in the echo response.

Applies to