public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Retropikzel <retropikzel@iki.fi>
To: kawa@sourceware.org
Subject: HTTP Response output port
Date: Fri, 11 Jun 2021 06:10:25 +0000	[thread overview]
Message-ID: <7cddcfa6-b22e-0b16-5b30-411f017d2da2@iki.fi> (raw)

Hello,

on reference manual under title "Generating HTTP Responses" it says that:

"Note that response-header does not actually do anything until it is
"printed" to the standard output."

(display...) just outputs it to the servers output, not to the response.
Is there a way to obtain the port in which I could print out the
response-header? Or optionally is there a way to put them somewhere and
then, at the end of the script output the whole list with response body?

My problem is that I would like to set headers on places that do not
return to the "standard output".

- Retropikzel

                 reply	other threads:[~2021-06-11  6:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7cddcfa6-b22e-0b16-5b30-411f017d2da2@iki.fi \
    --to=retropikzel@iki.fi \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).