http-server
Here are 2,045 public repositories matching this topic...
Long story short
Regression of #1188
Expected behaviour
Tests pass on armv7l
Actual behaviour
Test run fails at test_cookiejar.py:383: OverflowError
Steps to reproduce
Run tests
Your environment
linux 4.19
nixos 20.03
arm v7l
python 3.7
aiohttp client-3.6.2
Log
ts_before = datetime.datetime(
1975, 1, 1, tzinfo=datetim
I'm upgrading a build environment from python 2 to python 3 and noticed that endpoints with seeded random numbers are not returning the same values. It seems to be related to usage of randint:
https://github.com/postmanlabs/httpbin/blob/f8ec666b4d1b654e4ff6aedd356f510dcac09f83/httpbin/core.py#L1448
It seems like randint is not seed safe and it looks like only random() is: https://bugs.python.o
Following from #1236, the tornado worker should behave like the other workers.
On graceful shutdown:
- Stop accepting and close the listening socket
- Start a graceful shutdown timer
- Force end all connections if there are running requests after the timeout expires
I think that the call to server.stop() is already stopping it from accepting, but I don't know if it closes the listener
Noticing on the quick start guide, for the happy_birthday.py example, the localhost:8000/documentation route appears to be broken (returning 404).
Perhaps I'm doing something wrong, but if not, we should fix the bug and/or the documentation. And maybe consider an integration test as part of our test suite to prevent a future regression.
See http://blog.erlang.org/ssl-logging-in-otp-22/ for a full description.
One could enable debug logging in Cowboy to see all the packets transmitted and what Cowboy thinks of them, something like that. Could make some client issues obvious in particular.
集合类功能可以实现高阶消息吗?
The documentation for Object, Var and Varholder lead me to believe that given the following setup:
std::vector<DynamicStruct> testList;
Object t1;
t1.set("name","com.tl");
t1.set("num1",false);
Object j;
j.set("testval",testList);
The following call would let me extract the values (similar to my other use of Object with primitives and basic strings)
` auto retB
Whether the input is Go code and the output is Swagger Spec
Or whether the input is Swagger Spec and the output is Go Code
API documentation should be locked with the API implementation so that the documentation never goes stale.
A Spring Boot user has reported a problem with Spring Boot's reference documentation linking to Jetty's documentation. Spring Boot's reference documentation links to the Jetty documentation for the specific version of Jetty that it built against. For example, the documentation for Spring Boot 2.2.4 links to https://www.eclipse.org/jet
When running under gunicorn, --access-logformat isn't honored.
There was some discussion of this in #389, but I didn't see an open issue for it.
The obfuscation of neutralino.js's filepath in index.html is extremely confusing to understand when learning this framework. It's initially unclear why the developers chose to omit the the asset/ directory when loading this script, but did the opposite for assets/app.css and assets/app.js for their templates and examples.
<link rel="stylesheet" href="/assets/app.css">
<scrip
https://www.boost.org/doc/libs/1_71_0/libs/beast/doc/html/beast/using_websocket/timeouts.html says
The timeout features of the TCP or basic stream should not be used when working with a websocket stream.
and
`The timeouts on the websocket stream are incompatible with the timeouts used in the tcp_stream. When constructing a websocket stream from a tcp stream that has timeouts enabled, th
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
Also potentially in all javadoc annotations used for Params.
In both QueryParam and RequestParam javadoc for defaultValue() states -
"Supplying a default value implicitly sets {@link #required()} to {@code false}.",
which is actually incorrect.
If you set only the defaultValue, server will return the error: "Missing param [x] for method parameter."
So currently if I want to add an option
vcpkg install evpp 成功后。
Cmake中使用 find_package(evpp REQUIRED) 报错。
glog等库也是通过vcpkg安装的,可以使用find_package(glog REQUIRED)正常使用。
报错,信息如下:
PS C:\zhy\code\cpp_self\evpp_test\build> cmake -DCMAKE_TOOLCHAIN_FILE=C:/zhy/Lib/vcpkg/scripts/buildsystems/vcpkg.cmake
-G "Visual Studio 16 2019" -A Win32 ..
CMake Error at C:/zhy/Lib/vcpkg/scripts/buildsystems/vcpkg.cmake:266 (_find_package):
By not prov
Thank you for HTTP, and thank you for the recent additions of the logging and event logging system - they were very easy to use, and very helpful.
I've been investigating a problem in my system where requests are being sent to a server that is being s
-
Updated
Jun 16, 2020 - C++
@ChristopherDavenport has been arguing for this, and I like @SystemFw's argument about not burying use.
Steps:
- Add
@deprecatedannotation to both overloads ofClient.fetch. - Replace
client.fetch(req)(f)withclient.run(req).use(f)in tests and docs.
Bonus
- pulsar version: N/A
- python version: N/A
- platform: N/A
Description
It seems that your documentation hosted at https://docs.pulsarweb.org/ is unavailable.
When I try to access it I get the following message:
Error 1014 Ray ID: 4598be0f691559cc • 2018-09-13 07:01:25 UTC
CNAME Cross-User Banned
What happened?
You've requested a page on a website that is par
-
Updated
Jun 15, 2020 - TypeScript
-
Updated
Mar 3, 2020 - C++
in elif ACL_WINDOWS
lib_acl/src/net/acl_vstream_net.c
line 117
@@ -114,7 +114,7 @@ ACL_VSTREAM *acl_vstream_accept_ex(ACL_VSTREAM *sstream,
connfd = acl_accept(servfd, buf, sizeof(buf), NULL);
} else if (sstream->iocp_sock == ACL_SOCKET_INVALID) {
return NULL;
- else {
+ } else {
int ret;
co
Missing changelog
Hello,
it would be nice if a changelog has been available. It's not easy to read all commits, and some summary of changes is always better than this.
I like the puma changelog https://github.com/puma/puma/blob/master/History.md
Is it possible to have in the falcon repository?
The current javadoc reads:
* The uri of the request message.
* Uri query parameters are available via {@link #parameter(String)} and {@link #parameters()}.
* Uri pathArgs are available in {@link RequestContext}.
Some details that are unspecified:
- Does the uri contain the scheme of the incoming request?
- Does it contain the authority?
- How does it relate to
Route.uri? - What are the
-
Updated
Apr 1, 2020 - JavaScript
-
Updated
Jun 15, 2020 - C++
Pretty much as the title says - doesn't look like it's supported:
I'm taking a look and seeing if I can put together a PR
I thought it might be helpful for newcomers, for some of the packages required for building or installing this project to be enumerated.
Note that this is on Debian, which doesn't seem to have podman in the repos, so I substituted docker.
Also, in the Makefile, $(PWD) did not seem to work, so I substituted $(shell pwd).
Here are steps that build and deploy the project on current Debian.
Improve this page
Add a description, image, and links to the http-server topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the http-server topic, visit your repo's landing page and select "manage topics."


(Feature request out of https://caddy.community/t/use-placeholders-in-templates/7697)
I would like to see the ability of using placeholders like
{http.error.status_code}in templates. This would allow us, for example, to create a single custom error page in nginx style. For now we have to create a page for every status code we would like to support (maybe usingrespondwith include and ar