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

http-server

Here are 2,045 public repositories matching this topic...

caddy
bagbag
bagbag commented Apr 26, 2020

(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 using respond with include and ar

rajsite
rajsite commented Feb 11, 2020

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

tilgovi
tilgovi commented Apr 21, 2020

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

hug
jay-tyler
jay-tyler commented Feb 9, 2020

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.

bug
poco
bridgewaterrobbie
bridgewaterrobbie commented Sep 22, 2019

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

DSanborn
DSanborn commented Apr 8, 2020

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
RedDwarf69
RedDwarf69 commented Oct 8, 2019

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

Doc
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

milovan92
milovan92 commented Apr 30, 2020

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

ZhongHeyuan
ZhongHeyuan commented Jul 1, 2019

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

marcomorain
marcomorain commented Apr 5, 2019

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. 💯

https://github.com/http-kit/http-kit/blob/495219c40f86488351c6cc604df155a7a5b1a065/src/java/org/httpkit/server/RingHandler.java#L236-L238

I've been investigating a problem in my system where requests are being sent to a server that is being s

pierec
pierec commented Sep 13, 2018
  • 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
rouzwawi
rouzwawi commented Dec 2, 2015

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
rich-murphey
rich-murphey commented Aug 31, 2019

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.

Curate this topic

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."

Learn more

You can’t perform that action at this time.