Custom Async Http Client Example for Java #5263
              
                Unanswered
              
          
                  
                    
                      rameetchandok
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         Hello! Reopening this discussion to make it searchable.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team, i am working on integrating a custom http client implementation based on org.dispatchhttp.dispatch-core with S3AsyncClient however the REST request is sent via the client but there is response saying "400 Bad Request". Can you please help me understand the mistake and also provide an example in the documentation as well.
val builder = S3AsyncClient.builder .credentialsProvider( StaticCredentialsProvider.create( AwsBasicCredentials.create( s3Conf.key.accessKey, s3Conf.key.secretKey ) ) ) .serviceConfiguration(s3ConfigurationBuilder) .httpClient(httpClient)Transformer
` implicit object AsyncExecuteRequestTransformer extends RequestTransformerFactory[AsyncExecuteRequest] {
}`
The code is in scala and uses java awssdk dependency "software.amazon.awssdk" % "s3" % "2.25.45",
Beta Was this translation helpful? Give feedback.
All reactions