/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/sync/ |
H A D | RequestBodyTest.java | 50 RequestBody rb = RequestBody.fromString(multibyteChars); in stringConstructorUsesUTF8ByteLength() 56 RequestBody requestBody = RequestBody.fromString("hello world"); in stringConstructorHasCorrectContentType() local 57 … assertThat(requestBody.contentType()).isEqualTo(Mimetype.MIMETYPE_TEXT_PLAIN + "; charset=UTF-8"); in stringConstructorHasCorrectContentType() 62 RequestBody requestBody = RequestBody.fromString("hello world", StandardCharsets.US_ASCII); in stringConstructorWithCharsetHasCorrectContentType() local 63 …assertThat(requestBody.contentType()).isEqualTo(Mimetype.MIMETYPE_TEXT_PLAIN + "; charset=US-ASCII… in stringConstructorWithCharsetHasCorrectContentType() 71 RequestBody requestBody = RequestBody.fromFile(path); in fileConstructorHasCorrectContentType() local 72 assertThat(requestBody.contentType()).isEqualTo(Mimetype.MIMETYPE_OCTET_STREAM); in fileConstructorHasCorrectContentType() 78 RequestBody requestBody = RequestBody.fromInputStream(inputStream, 11); in streamConstructorHasCorrectContentType() local 79 assertThat(requestBody.contentType()).isEqualTo(Mimetype.MIMETYPE_OCTET_STREAM); in streamConstructorHasCorrectContentType() 91 RequestBody requestBody = RequestBody.fromInputStream(inputStream, 11); in nonMarkSupportedInputStreamContentType() local [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/sync/ |
H A D | RequestBody.java | 47 public final class RequestBody { class 54 …private RequestBody(ContentStreamProvider contentStreamProvider, Long contentLength, String conten… in RequestBody() method in RequestBody 61 * @return RequestBody as an {@link InputStream}. 69 * @return Content length of {@link RequestBody}. 79 * @return Optional object of content length of {@link RequestBody}. 86 * @return Content type of {@link RequestBody}. 93 * Create a {@link RequestBody} using the full contents of the specified file. 96 * @return RequestBody instance. 98 public static RequestBody fromFile(Path path) { in fromFile() 99 return new RequestBody(new FileContentStreamProvider(path), in fromFile() [all …]
|
/aosp_15_r20/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
H A D | MultipartBuilderTest.java | 41 RequestBody requestBody = new MultipartBuilder("123") in singlePart() local 42 .addPart(RequestBody.create(null, "Hello, World!")) in singlePart() 45 assertEquals("multipart/mixed; boundary=123", requestBody.contentType().toString()); in singlePart() 48 requestBody.writeTo(buffer); in singlePart() 49 assertEquals(53, requestBody.contentLength()); in singlePart() 50 assertEquals(buffer.size(), requestBody.contentLength()); in singlePart() 70 RequestBody requestBody = new MultipartBuilder("123") in threeParts() local 71 .addPart(RequestBody.create(null, "Quick")) in threeParts() 72 .addPart(RequestBody.create(null, "Brown")) in threeParts() 73 .addPart(RequestBody.create(null, "Fox")) in threeParts() [all …]
|
H A D | RequestTest.java | 36 RequestBody body = RequestBody.create(contentType, "abc".getBytes(Util.UTF_8)); in string() 45 RequestBody body = RequestBody.create(contentType, "\u0800"); in stringWithDefaultCharsetAdded() 53 RequestBody body = RequestBody.create(contentType, "\u0800"); in stringWithNonDefaultCharsetSpecified() 61 RequestBody body = RequestBody.create(contentType, "abc".getBytes(Util.UTF_8)); in byteArray() 70 RequestBody body = RequestBody.create(contentType, ".abcd".getBytes(Util.UTF_8), 1, 3); in byteArrayRange() 84 RequestBody body = RequestBody.create(contentType, file); in file() 94 RequestBody body = RequestBody.create(contentType, "{}"); in crudVerbs() 231 private String bodyToHex(RequestBody body) throws IOException { in bodyToHex()
|
/aosp_15_r20/external/aws-sdk-java-v2/services-custom/s3-transfer-manager/src/main/java/software/amazon/awssdk/transfer/s3/model/ |
H A D | UploadRequest.java | 48 private final AsyncRequestBody requestBody; field in UploadRequest 53 this.requestBody = paramNotNull(builder.requestBody, "requestBody"); in UploadRequest() 69 public AsyncRequestBody requestBody() { in requestBody() method in UploadRequest 70 return requestBody; in requestBody() 113 if (!Objects.equals(requestBody, that.requestBody)) { in equals() 122 result = 31 * result + (requestBody != null ? requestBody.hashCode() : 0); in hashCode() 131 .add("requestBody", requestBody) in toString() 147 * @param requestBody the request body 151 Builder requestBody(AsyncRequestBody requestBody); in requestBody() argument 208 private AsyncRequestBody requestBody; field in UploadRequest.DefaultBuilder [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/runtime/transform/ |
H A D | StreamingRequestMarshaller.java | 22 import software.amazon.awssdk.core.sync.RequestBody; 34 private final RequestBody requestBody; field in StreamingRequestMarshaller 38 this.requestBody = builder.requestBody; in StreamingRequestMarshaller() 48 marshalled.contentStreamProvider(requestBody.contentStreamProvider()); in marshall() 52 marshalled.putHeader(CONTENT_TYPE, requestBody.contentType()); in marshall() 55 // Currently, SDK always require content length in RequestBody. So we always in marshall() 57 // This change will be useful if SDK relaxes the content-length requirement in RequestBody in marshall() 58 …addHeaders(marshalled, requestBody.optionalContentLength(), requiresLength, transferEncoding, useH… in marshall() 67 private RequestBody requestBody; field in StreamingRequestMarshaller.Builder 70 * @param requestBody {@link RequestBody} representing the HTTP payload [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/main/java/software/amazon/awssdk/core/interceptor/ |
H A D | InterceptorContext.java | 28 import software.amazon.awssdk.core.sync.RequestBody; 45 private final Optional<RequestBody> requestBody; field in InterceptorContext 55 this.requestBody = builder.requestBody; in InterceptorContext() 78 public Optional<RequestBody> requestBody() { in requestBody() method in InterceptorContext 79 return requestBody; in requestBody() 117 private Optional<RequestBody> requestBody = Optional.empty(); field in InterceptorContext.Builder 131 this.requestBody = context.requestBody; in Builder() 149 public Builder requestBody(RequestBody requestBody) { in requestBody() method in InterceptorContext.Builder 150 this.requestBody = Optional.ofNullable(requestBody); in requestBody()
|
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/internal/async/ |
H A D | ChecksumCalculatingAsyncRequestBodyTest.java | 76 Arguments.of("RequestBody from string, test string", in publishers() 79 Arguments.of("RequestBody from file, test string", in publishers() 82 Arguments.of("RequestBody from buffer, 0 pos, test string", in publishers() 85 Arguments.of("RequestBody from buffer, random pos, test string", in publishers() 88 Arguments.of("RequestBody from string, empty string", in publishers() 92 Arguments.of("RequestBody from file, empty string", in publishers() 95 Arguments.of("RequestBody from buffer, 0 pos, empty string", in publishers() 98 Arguments.of("RequestBody from string, random pos, empty string", in publishers() 163 AsyncRequestBody requestBody = ChecksumCalculatingAsyncRequestBody.builder() in constructor_asyncRequestBodyFromString_hasCorrectContentType() local 168 assertThat(requestBody.contentType()).startsWith(Mimetype.MIMETYPE_TEXT_PLAIN); in constructor_asyncRequestBodyFromString_hasCorrectContentType() [all …]
|
H A D | ByteBuffersAsyncRequestBodyTest.java | 74 …AsyncRequestBody requestBody = ByteBuffersAsyncRequestBody.from("Hello World!".getBytes(StandardCh… in subscriberIsMarkedAsCompleted() local 77 requestBody.subscribe(subscriber); in subscriberIsMarkedAsCompleted() 86 …AsyncRequestBody requestBody = ByteBuffersAsyncRequestBody.from("Hello World!".getBytes(StandardCh… in subscriberIsMarkedAsCompletedWhenARequestIsMadeForMoreBuffersThanAreAvailable() local 89 requestBody.subscribe(subscriber); in subscriberIsMarkedAsCompletedWhenARequestIsMadeForMoreBuffersThanAreAvailable() 99 AsyncRequestBody requestBody = ByteBuffersAsyncRequestBody.of(IntStream.range(0, numBuffers) in subscriberIsThreadSafeAndMarkedAsCompletedExactlyOnce() local 104 requestBody.subscribe(subscriber); in subscriberIsThreadSafeAndMarkedAsCompletedExactlyOnce() 127 …AsyncRequestBody requestBody = ByteBuffersAsyncRequestBody.of((long) (helloWorld.length + goodbyeW… in subscriberIsNotMarkedAsCompletedWhenThereAreRemainingBuffersToPublish() local 132 requestBody.subscribe(subscriber); in subscriberIsNotMarkedAsCompletedWhenThereAreRemainingBuffersToPublish() 144 …AsyncRequestBody requestBody = ByteBuffersAsyncRequestBody.of((long) (helloWorld.length + goodbyeW… in subscriberReceivesAllBuffers() local 149 requestBody.subscribe(subscriber); in subscriberReceivesAllBuffers() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/test/java/software/amazon/awssdk/services/s3/utils/ |
H A D | InterceptorTestUtils.java | 28 import software.amazon.awssdk.core.sync.RequestBody; 89 public Optional<RequestBody> requestBody() { in modifyHttpResponse() method in InterceptorTestUtils 110 Optional<RequestBody> requestBody = Optional.of(RequestBody.fromString("helloworld")); 120 public Optional<RequestBody> requestBody() { 121 return requestBody; 164 public Optional<RequestBody> requestBody() { 208 public Optional<RequestBody> requestBody() { 254 public Optional<RequestBody> requestBody() {
|
/aosp_15_r20/external/aws-sdk-java-v2/services/s3control/src/test/java/software/amazon/awssdk/services/s3control/internal/interceptors/ |
H A D | PayloadSigningInterceptorTest.java | 26 import software.amazon.awssdk.core.sync.RequestBody; 50 Optional<RequestBody> modified = interceptor.modifyHttpContent(new Context(request, null), in modifyHttpContent_AddsExecutionAttributeAndPayload() 61 …Optional<RequestBody> modified = interceptor.modifyHttpContent(new Context(request, RequestBody.fr… in modifyHttpContent_DoesNotReplaceBody() 71 private final RequestBody requestBody; field in PayloadSigningInterceptorTest.Context 74 RequestBody requestBody) { in Context() argument 76 this.requestBody = requestBody; in Context() 90 public Optional<RequestBody> requestBody() { in requestBody() method in PayloadSigningInterceptorTest.Context 91 return Optional.ofNullable(requestBody); in requestBody()
|
/aosp_15_r20/external/aws-sdk-java-v2/codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/ |
H A D | test-abstract-sync-client-class.java | 9 import software.amazon.awssdk.core.sync.RequestBody; 276 * @param requestBody 277 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 282 * {@code RequestBody.fromFile(new File("myfile.txt"))} 285 …* See documentation in {@link RequestBody} for additional details and which sources of data… 316 …RequestBody requestBody, ResponseTransformer<PutOperationWithChecksumResponse, ReturnT> responseTr… in putOperationWithChecksum() argument 319 … request -> delegate.putOperationWithChecksum(request, requestBody, responseTransformer)); in putOperationWithChecksum() 326 * @param requestBody 327 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 332 * {@code RequestBody.fromFile(new File("myfile.txt"))} [all …]
|
H A D | test-json-client-interface.java | 13 import software.amazon.awssdk.core.sync.RequestBody; 980 * @param requestBody 981 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 986 * {@code RequestBody.fromFile(new File("myfile.txt"))} 989 …* See documentation in {@link RequestBody} for additional details and which sources of data… 1019 …RequestBody requestBody, ResponseTransformer<PutOperationWithChecksumResponse, ReturnT> responseTr… in putOperationWithChecksum() argument 1035 * @param requestBody 1036 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 1041 * {@code RequestBody.fromFile(new File("myfile.txt"))} 1044 …* See documentation in {@link RequestBody} for additional details and which sources of data… [all …]
|
H A D | test-json-client-class.java | 32 import software.amazon.awssdk.core.sync.RequestBody; 597 * @param requestBody 598 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 603 * {@code RequestBody.fromFile(new File("myfile.txt"))} 606 …* See documentation in {@link RequestBody} for additional details and which sources of data… 637 …RequestBody requestBody, ResponseTransformer<PutOperationWithChecksumResponse, ReturnT> responseTr… in putOperationWithChecksum() argument 672 .withRequestBody(requestBody) in putOperationWithChecksum() 676 … .requestBody(requestBody).build()), responseTransformer); in putOperationWithChecksum() 686 * @param requestBody 687 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… [all …]
|
H A D | test-xml-client-class.java | 32 import software.amazon.awssdk.core.sync.RequestBody; 445 * @param requestBody 446 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 451 * {@code RequestBody.fromFile(new File("myfile.txt"))} 454 …* See documentation in {@link RequestBody} for additional details and which sources of data… 485 …RequestBody requestBody, ResponseTransformer<PutOperationWithChecksumResponse, ReturnT> responseTr… in putOperationWithChecksum() argument 517 .withRequestBody(requestBody) in putOperationWithChecksum() 521 .requestBody(requestBody).build())); in putOperationWithChecksum() 531 * @param requestBody 532 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/crt/ |
H A D | S3CrtRequestBodyStreamAdapterTest.java | 49 SdkHttpContentPublisher requestBody = requestBody(Flowable.fromIterable(data), 42L); in getRequestData_fillsInputBuffer_publisherBuffersAreSmaller() local 51 S3CrtRequestBodyStreamAdapter adapter = new S3CrtRequestBodyStreamAdapter(requestBody); in getRequestData_fillsInputBuffer_publisherBuffersAreSmaller() 59 private static SdkHttpContentPublisher requestBody(Publisher<ByteBuffer> delegate, long size) { in requestBody() method in S3CrtRequestBodyStreamAdapterTest 81 SdkHttpContentPublisher requestBody = requestBody(Flowable.just(data), 16L); 83 S3CrtRequestBodyStreamAdapter adapter = new S3CrtRequestBodyStreamAdapter(requestBody); 98 SdkHttpContentPublisher requestBody = requestBody(errorPublisher, 0L); 99 S3CrtRequestBodyStreamAdapter adapter = new S3CrtRequestBodyStreamAdapter(requestBody); 110 SdkHttpContentPublisher requestBody = requestBody(errorPublisher, 0L); 111 S3CrtRequestBodyStreamAdapter adapter = new S3CrtRequestBodyStreamAdapter(requestBody);
|
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/test/java/software/amazon/awssdk/services/s3/internal/handlers/ |
H A D | SyncChecksumValidationInterceptorTest.java | 45 import software.amazon.awssdk.core.sync.RequestBody; 76 Optional<RequestBody> requestBody = interceptor.modifyHttpContent(modifyHttpRequest, in modifyHttpContent_putObjectRequestChecksumEnabled_shouldWrapChecksumRequestBody() local 79 assertThat(requestBody.isPresent()).isTrue(); in modifyHttpContent_putObjectRequestChecksumEnabled_shouldWrapChecksumRequestBody() 81 …assertThat(requestBody.get().contentStreamProvider()).isNotEqualTo(modifyHttpRequest.requestBody()… in modifyHttpContent_putObjectRequestChecksumEnabled_shouldWrapChecksumRequestBody() 89 Optional<RequestBody> requestBody = interceptor.modifyHttpContent(modifyHttpRequest, in modifyHttpContent_nonPutObjectRequest_shouldNotModify() local 92 assertThat(requestBody).isEqualTo(modifyHttpRequest.requestBody()); in modifyHttpContent_nonPutObjectRequest_shouldNotModify() 101 Optional<RequestBody> requestBody = interceptor.modifyHttpContent(modifyHttpRequest, in modifyHttpContent_putObjectRequest_checksumDisabled_shouldNotModify() local 103 assertThat(requestBody).isEqualTo(modifyHttpRequest.requestBody()); in modifyHttpContent_putObjectRequest_checksumDisabled_shouldNotModify() 211 .requestBody(RequestBody.fromString("Test")) in afterUnmarshalling_putObjectRequest_shouldValidateChecksum_throwExceptionIfInvalid()
|
/aosp_15_r20/external/aws-sdk-java-v2/codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/sra/ |
H A D | test-json-client-class.java | 27 import software.amazon.awssdk.core.sync.RequestBody; 590 * @param requestBody 591 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 596 * {@code RequestBody.fromFile(new File("myfile.txt"))} 599 …* See documentation in {@link RequestBody} for additional details and which sources of data… 630 …RequestBody requestBody, ResponseTransformer<PutOperationWithChecksumResponse, ReturnT> responseTr… in putOperationWithChecksum() argument 665 .withRequestBody(requestBody) in putOperationWithChecksum() 669 … .requestBody(requestBody).build()), responseTransformer); in putOperationWithChecksum() 679 * @param requestBody 680 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… [all …]
|
H A D | test-xml-client-class.java | 28 import software.amazon.awssdk.core.sync.RequestBody; 438 * @param requestBody 439 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… 444 * {@code RequestBody.fromFile(new File("myfile.txt"))} 447 …* See documentation in {@link RequestBody} for additional details and which sources of data… 478 …RequestBody requestBody, ResponseTransformer<PutOperationWithChecksumResponse, ReturnT> responseTr… in putOperationWithChecksum() argument 510 .withRequestBody(requestBody) in putOperationWithChecksum() 514 .requestBody(requestBody).build())); in putOperationWithChecksum() 524 * @param requestBody 525 …* The content to send to the service. A {@link RequestBody} can be created using one of sev… [all …]
|
/aosp_15_r20/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/internal/ws/ |
H A D | RealWebSocketTest.java | 19 import com.squareup.okhttp.RequestBody; 107 client.sendMessage(RequestBody.create(TEXT, "Hello!")); in textMessage() 113 client.sendMessage(RequestBody.create(BINARY, "Hello!")); in binaryMessage() 120 client.sendMessage(RequestBody.create(null, "Hey!")); in missingContentTypeThrows() 130 client.sendMessage(RequestBody.create(MediaType.parse("text/plain"), "Hey!")); in unknownContentTypeThrows() 140 RequestBody message = new RequestBody() { in streamingMessage() 157 RequestBody message = new RequestBody() { in streamingMessageCanInterleavePing() 214 client.sendMessage(RequestBody.create(TEXT, "Hello!")); in clientCloseThenMethodsThrow() 232 client.sendMessage(RequestBody.create(TEXT, "Hello!")); in socketClosedDuringPingKillsWebSocket() 249 client.sendMessage(RequestBody.create(TEXT, "Hello!")); in socketClosedDuringMessageKillsWebSocket() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/core/sdk-core/src/test/java/software/amazon/awssdk/core/async/ |
H A D | AsyncRequestBodyTest.java | 314 AsyncRequestBody requestBody = AsyncRequestBody.fromString("hello world", charset); in charsetsAreConvertedToTheCorrectContentType() local 315 assertEquals("text/plain; charset=" + charset.name(), requestBody.contentType()); in charsetsAreConvertedToTheCorrectContentType() 320 AsyncRequestBody requestBody = AsyncRequestBody.fromString("hello world"); in stringConstructorHasCorrectDefaultContentType() local 321 assertEquals("text/plain; charset=UTF-8", requestBody.contentType()); in stringConstructorHasCorrectDefaultContentType() 326 AsyncRequestBody requestBody = AsyncRequestBody.fromFile(path); in fileConstructorHasCorrectContentType() local 327 assertEquals(Mimetype.MIMETYPE_OCTET_STREAM, requestBody.contentType()); in fileConstructorHasCorrectContentType() 332 AsyncRequestBody requestBody = AsyncRequestBody.fromBytes("hello world".getBytes()); in bytesArrayConstructorHasCorrectContentType() local 333 assertEquals(Mimetype.MIMETYPE_OCTET_STREAM, requestBody.contentType()); in bytesArrayConstructorHasCorrectContentType() 339 AsyncRequestBody requestBody = AsyncRequestBody.fromByteBuffer(byteBuffer); in bytesBufferConstructorHasCorrectContentType() local 340 assertEquals(Mimetype.MIMETYPE_OCTET_STREAM, requestBody.contentType()); in bytesBufferConstructorHasCorrectContentType() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/main/java/software/amazon/awssdk/services/s3/internal/handlers/ |
H A D | SyncChecksumValidationInterceptor.java | 36 import software.amazon.awssdk.core.sync.RequestBody; 47 public Optional<RequestBody> modifyHttpContent(Context.ModifyHttpRequest context, in modifyHttpContent() 50 && context.requestBody().isPresent()) { in modifyHttpContent() 55 RequestBody requestBody = context.requestBody().get(); in modifyHttpContent() local 58 … new ChecksumCalculatingStreamProvider(requestBody.contentStreamProvider(), checksum); in modifyHttpContent() 60 return Optional.of(RequestBody.fromContentProvider(streamProvider, in modifyHttpContent() 61 requestBody.contentLength(), in modifyHttpContent() 62 requestBody.contentType())); in modifyHttpContent() 65 return context.requestBody(); in modifyHttpContent()
|
/aosp_15_r20/external/aws-sdk-java-v2/services-custom/s3-transfer-manager/src/test/java/software/amazon/awssdk/transfer/s3/model/ |
H A D | UploadRequestTest.java | 32 .requestBody(AsyncRequestBody.fromString("foo")) in upload_noRequestParamsProvided_throws() 42 "requestBody"); in bodyMissing_shouldThrow() 47 AsyncRequestBody requestBody = AsyncRequestBody.fromString("foo"); in bodyEqualsGivenBody() local 50 .requestBody(requestBody) in bodyEqualsGivenBody() 52 assertThat(request.requestBody()).isSameAs(requestBody); in bodyEqualsGivenBody() 58 .requestBody(null) in null_requestBody_shouldThrowException() 61 "requestBody"); in null_requestBody_shouldThrowException() 67 .withNonnullFields("requestBody", "putObjectRequest") in equals_hashcode()
|
/aosp_15_r20/external/okhttp/okhttp-logging-interceptor/src/main/java/com/squareup/okhttp/logging/ |
H A D | HttpLoggingInterceptor.java | 25 import com.squareup.okhttp.RequestBody; 148 RequestBody requestBody = request.body(); in intercept() local 149 boolean hasRequestBody = requestBody != null; in intercept() 156 requestStartMessage += " (" + requestBody.contentLength() + "-byte body)"; in intercept() 164 if (requestBody.contentType() != null) { in intercept() 165 logger.log("Content-Type: " + requestBody.contentType()); in intercept() 167 if (requestBody.contentLength() != -1) { in intercept() 168 logger.log("Content-Length: " + requestBody.contentLength()); in intercept() 187 requestBody.writeTo(buffer); in intercept() 190 MediaType contentType = requestBody.contentType(); in intercept() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/services/s3/src/it/java/software/amazon/awssdk/services/s3/checksum/ |
H A D | HttpChecksumIntegrationTest.java | 45 import software.amazon.awssdk.core.sync.RequestBody; 107 … .build(), RequestBody.fromString("Hello world")); in validHeaderChecksumCalculatedBySdkClient() 123 … .build(), RequestBody.fromString("Hello world")); in validHeaderChecksumSentDirectlyInTheField() 137 … .build(), RequestBody.fromString("Hello world")); in validHeaderChecksumSentDirectlyInTheFieldAndFeatureEnabled() 151 … RequestBody.fromString("Hello world"))) in invalidHeaderChecksumCalculatedByUserNotOverWrittenBySdkClient() 161 .build(), RequestBody.fromString("Hello world")); in syncValidUnsignedTrailerChecksumCalculatedBySdkClient() 184 .build(), RequestBody.fromString("Hello world")); in syncValidSignedTrailerChecksumCalculatedBySdkClient() 212 .build(), RequestBody.fromString("")); in syncValidSignedTrailerChecksumCalculatedBySdkClient_Empty_String() 237 .build(), RequestBody.fromString("Hello world")); in syncValidSignedTrailerChecksumCalculatedBySdkClientWithSigv4a() 261 .build(), RequestBody.fromString("Hello world")); in syncValidSignedTrailerChecksumCalculatedBySdkClientWithSigv4a_withContentEncoding() [all …]
|