Skip to content
#

http-client

Here are 1,655 public repositories matching this topic...

iagormoraes
iagormoraes commented Oct 21, 2021

Describe the bug
By getting a HTML response from any endpoint call, the preview is not getting the full height of available space as shown in the screenshot.

To Reproduce
Steps to reproduce the behavior:

  1. Make request to https://github.com/hoppscotch/hoppscotch/issues
  2. Click on Show Preview
  3. You should see the height of the preview not fitting the available space

**Exp

tszlek
tszlek commented Aug 17, 2021

Hi, I have discovered issue when using feign.httpclient.ApacheHttpClient.
In some cases Apache client throws ProtocolException which is a checked exception. This happens for example when server returned 303 HTTP code but there was no location header.
In such case Feign proxy throws UndeclaredThrowableException instead of invoking ErrorDecoder.

node-fetch
brighttank
brighttank commented Aug 9, 2021

For some reason Amazon REST api's require the content-type to be set to "application/x-amz-json-1.1" instead of the standard "application/json"

Currently the content-type header is set automatically for json data overriding any headers passed in to the request.

It would be useful to first check if the header is set before overriding it:

if (!this.request.headers.set('content-type')) {
ikhoon
ikhoon commented Jul 19, 2021

JSON is the dominant exchange format for REST API.
However, Armeria's WebClient does not provide any JSON-specific APIs.
I believe it should be useful additions if we provide:

WebClient client = WebClient.of();
// Send a serialized JSON object with "applicaiton/json"
HttpResponse response = client.postJson("/items", new MyItem()); 
HttpResponse response = client.putJson("/items"

Improve this page

Add a description, image, and links to the http-client topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the http-client topic, visit your repo's landing page and select "manage topics."

Learn more