Skip to content
#

http-server

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

caddy
gucki
gucki commented Dec 12, 2020

It seems Caddy does not support wildcards/ expression matching in the reverse proxy's header_up.

For example this does not remove any headers:

header_up -X-SHIBBOLETH-*

This works as expected, but is limited in its use:

header_up -X-SHIBBOLETH-LOGIN

It'd be great if Caddy would support wildcards/ expression matching in the reverse proxy's header_up/ header_down.

drogon
hwc0919
hwc0919 commented Aug 20, 2021

Could you make HttpResponse capable of sending part of file by Range header, or by user specified offset and size ?

The TcpConnection class do have a public sendFile method with offset and length parameters, but HttpResponse can not take any advantages of that. Currently it can only send the whole file at one time. Maybe a setRange method would be enough?

Some-Dood
Some-Dood commented Aug 6, 2021

Hello there! After some experimentation with the mocking API, I discovered that mocked contexts do not provide a mocked Cookies instance. Suppose we wanted to test the following middleware:

// session.ts
// Explicit type annotations omitted for brevity...
export function checkSession(ctx) {
    const maybeSessionId = ctx.cookies.get('sid');
    ctx.assert(maybeSessionId, St
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"
tinyhttp

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