The Wayback Machine - https://web.archive.org/web/20200831142526/https://github.com/topics/http-client
Skip to content
#

http-client

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

insomnia
lrweck
lrweck commented Aug 12, 2020

Describe the bug
I'm using java to develop a webservice and when I throw an exception it returns the correct response code, however the message does not contain spaces.

To Reproduce
Steps to reproduce the behavior:

  1. throw exception that contains spaces in its messages in the app

Expected behavior
The returned message should contain spaces.

Screenshots
Insomnia:
![i

kirillgroshkov
kirillgroshkov commented May 13, 2020

I've read many similar closed issues, but haven't found a good documented solution on what can I do as a consumer of ky package if I need to support e.g iOS 10.0 browser (that breaks on async/await support currently).

I agree that it's not related to ky itself, but can be a nice help for the consumers of the package.

In our particular can we don't use babel (we use typescript), so I'm

node-fetch
tinovyatkin
tinovyatkin commented Jun 12, 2020

node-fetch currently completely ignoring Content-Length header while consuming response.
Fetch specification about handling Content-Length on server response says almost nothing:
https://fetch.spec.whatwg.org/#concept-http-network-fetch (see whatwg/fetch#67)

On other hand, we have a fetch-node specific extension to limit the size of the response.

My prop

armeria
ikhoon
ikhoon commented Mar 19, 2020

In our codebase, we push RequestContext and immediately run some code with try-with-resources.
For example:

try (SafeCloseable ignored = ctx.push()) {
    logger.trace(decorate(msg));
}

If RequestContext provides run(Runnable) or call(Callable) we can reduce boilerplate code and simplify it.

ctx.run(() -> logger.trace(decorate(msg));

This is inspired by g

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

You can’t perform that action at this time.