mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 10:50:28 +00:00
Updated redbean Fetch documentation
This commit is contained in:
parent
d73b465c6b
commit
04d713e21a
1 changed files with 10 additions and 0 deletions
|
@ -1054,6 +1054,16 @@ FUNCTIONS
|
||||||
- maxredirects (default = 5): sets the number of allowed redirects
|
- maxredirects (default = 5): sets the number of allowed redirects
|
||||||
to minimize looping due to misconfigured servers. When the number
|
to minimize looping due to misconfigured servers. When the number
|
||||||
is exceeded, the last response is returned.
|
is exceeded, the last response is returned.
|
||||||
|
- keepalive (default = false): configures each request to keep the
|
||||||
|
connection open (unless closed by the server) and reuse for the
|
||||||
|
next request to the same host. This option is disabled when SSL
|
||||||
|
connection is used.
|
||||||
|
The mapping of hosts and their sockets is stored in a table
|
||||||
|
assigned to the `keepalive` field itself, so it can be passed to
|
||||||
|
the next call.
|
||||||
|
If the table includes the `close` field set to a true value,
|
||||||
|
then the connection is closed after the request is made and the
|
||||||
|
host is removed from the mapping table.
|
||||||
When the redirect is being followed, the same method and body values
|
When the redirect is being followed, the same method and body values
|
||||||
are being sent in all cases except when 303 status is returned. In
|
are being sent in all cases except when 303 status is returned. In
|
||||||
that case the method is set to GET and the body is removed before the
|
that case the method is set to GET and the body is removed before the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue