diff --git a/README.html b/README.html
index 1b4b1d8a..3746c124 100644
--- a/README.html
+++ b/README.html
@@ -1,6 +1,6 @@
UxPlay
-1.57: AirPlay-Mirror and AirPlay-Audio server for Linux, macOS, and Unix
+id="uxplay-1.58-airplay-mirror-and-airplay-audio-server-for-linux-macos-and-unix-now-also-runs-on-windows.">UxPlay
+1.58: AirPlay-Mirror and AirPlay-Audio server for Linux, macOS, and Unix
(now also runs on Windows).
Now
@@ -20,7 +20,7 @@
macOS clients.
Support for older iOS clients (such as 32-bit iPad 2nd gen., iPod
Touch 5th gen. and iPhone 4S, when upgraded to iOS 9.3.5, or later
-64-bit versions), plus a Windows AirPlay-client emulator,
+64-bit devices), plus a Windows AirPlay-client emulator,
AirMyPC.
Uses GStreamer plugins for audio and video rendering (with
options to select different hardware-appropriate output “videosinks” and
@@ -30,10 +30,10 @@
New: Support for Raspberry Pi, with hardware
video acceleration using Video4Linux2 (v4l2), which supports both 32-
and 64-bit systems: this is the replacement for 32-bit-only OpenMAX
-(omx), for which support by RPi distributions is being discontinued.
-(Until GStreamer 1.22 is released, a backport of changes from the
-GStreamer development branch is needed: this has now been done by
-Raspberry Pi OS (Bullseye); for other distributions a patch
to the GStreamer Video4Linux2 plugin, available in the UxPlay Wiki, is
@@ -293,6 +293,12 @@
Debian-based systems:
network ports are opened. See Troubleshooting below for help with this or
other problems.
+
+- By default, UxPlay is locked to its current client until that client
+drops the connection; the option
-nohold
modifies this
+behavior so that when a new client requests a connection, it removes the
+current client and takes over.
+
To display the accompanying “Cover Art” from sources like Apple Music
in Audio-Only (ALAC) mode, run
“uxplay -ca <name> &
” in the background, then run
@@ -313,12 +319,19 @@
Debian-based systems:
For good performance, the Raspberry Pi needs the GStreamer
Video4linux2 plugin to use its Broadcom GPU hardware for decoding h264
-video. You can also test UxPlay with software-only video decoding using
-option -avdec
.
-The upcoming GStreamer-1.22 release will work well, but older
-releases of GStreamer will not work unless patched with backports of the
-improvements from GStreamer-1.22. Raspberry Pi OS (Bullseye) now has the
-needed backports. For other distributions, patches for GStreamer are Raspberry Pi
+kernel tree, but is not yet included in the mainline Linux kernel.
+Distributions for R Pi that supply it include Raspberry Pi OS, Ubuntu,
+and Manjaro. Some others may not. Without this kernel module,
+UxPlay cannot use the GPU.
+The plugin in the upcoming GStreamer-1.22 release will work well,
+but the one in older releases of GStreamer will not work unless patched
+with backports of the improvements from GStreamer-1.22. Raspberry Pi OS
+(Bullseye) now has a working backport. For a fuller backport, or for
+other distributions, patches for the GStreamer Video4Linux2 plugin are
+available
with instructions in the UxPlay Wiki.
@@ -341,12 +354,18 @@ Debian-based systems:
option -bt709
: previously the GStreamer v4l2
plugin could not recognise Apple’s color format (an unusual “full-range”
variant of the bt709 HDTV standard), which -bt709 fixes.
-GStreamer-1.20.4 will have a fix for this, which is included in the
-latest patches, so beginning with UxPlay-1.56, the bt709 fix is no
-longer automatically applied. After a recent update, Raspberry
-Pi OS (Bullseye) now supplies an already-patched GStreamer-1.18.4 that
-works with UxPlay, but needs the -bt709
option with
-UxPlay-1.56 or later.
+GStreamer-1.20.4 has a fix for this, which is included in the latest
+patches, so beginning with UxPlay-1.56, the bt709 fix is no longer
+automatically applied.
+As mentioned, Raspberry Pi OS (Bullseye) now supplies a
+GStreamer-1.18.4 package with backports that works with UxPlay, but
+needs the -bt709
option with UxPlay-1.56 or later.
+Although this Raspberry Pi OS package
+gstreamer1.0-plugins-good-1.18.4-2+deb11u1+rpt1 works without having to
+be patched, don’t use options -v4l2
and
+-rpi*
with it, as they cause a crash if the client screen
+is rotated. (This does not occur when the patch from the UxPlay
+Wiki has been applied.)
Tip: to start UxPlay on a remote host (such as a Raspberry Pi)
using ssh:
@@ -363,10 +382,12 @@ Non-Debian-based Linux or
Alma Linux): (sudo yum install) openssl-devel libplist-devel
avahi-compat-libdns_sd-devel (some from the “PowerTools” add-on
repository) (+libX11-devel for ZOOMFIX). The required GStreamer packages
-(some from rpmfusion.org) are:
-gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-libav
-gstreamer1-plugins-bad-free (+ gstreamer1-vaapi for intel
-graphics).
+are: gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-libav
+gstreamer1-plugins-bad-free (+ gstreamer1-vaapi for intel graphics); you
+may need to get some of them (in particular gstreamer1-libav) from rpmfusion.org (which provides packages
+including plugins that RedHat does not ship for license
+reasons).
OpenSUSE: (sudo zypper install) libopenssl-devel
libplist-devel avahi-compat-mDNSResponder-devel (+ libX11-devel for
ZOOMFIX). The required GStreamer packages are: gstreamer-devel
@@ -374,7 +395,8 @@
Non-Debian-based Linux or
gstreamer-plugins-bad (+ gstreamer-plugins-vaapi for Intel graphics); in
some cases, you may need to use gstreamer packages for OpenSUSE from Packman
-“Essentials”.
+“Essentials” (which provides packages including plugins that OpenSUSE
+does not ship for license reasons).
Arch Linux (sudo pacman -Syu) openssl libplist
avahi gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav (+
gstreamer-vaapi for Intel graphics). (Also available as a
@@ -419,9 +441,9 @@ Non-Debian-based Linux or
For the “official” release: install both the macOS
runtime and development installer packages. Assuming that the latest
-release is 1.20.3. install
-gstreamer-1.0-1.20.3-universal.pkg
and
-gstreamer-1.0-devel-1.20.3-universal.pkg
. (If you have an
+release is 1.20.4. install
+gstreamer-1.0-1.20.4-universal.pkg
and
+gstreamer-1.0-devel-1.20.4-universal.pkg
. (If you have an
Intel-architecture Mac, and have problems with the “universal” packages,
you can also use gstreamer-1.0-1.18.6-x86_64.pkg
and
gstreamer-1.0-devel-1.18.6-x86_64.pkg
.) Click on them to
@@ -454,7 +476,9 @@
Non-Debian-based Linux or
can be expanded using the mouse or trackpad. In contrast, a window
created with “-vs osxvideosink” is initially big, but has the wrong
aspect ratio (stretched image); in this case the aspect ratio changes
-when the window width is changed by dragging its side.
+when the window width is changed by dragging its side; the option “-vs
+osxvideosink force-aspect-ratio=true” can be used to make the window
+have the correct aspect ratio when it first opens.
Using GStreamer installed from MacPorts (not
recommended):
@@ -622,11 +646,12 @@ Usage
h264 parser element, default is h264parse. Using quotes “…” allows
options to be added.
-vd decoder chooses the GStreamer
-pipeline’s h264 decoder element, instead of letting decodebin pick it
-for you. Software decoding is done by avdec_h264; various hardware
-decoders include: vaapih264dec, nvdec, nvh264dec, v4l2h264dec (these
-require that the appropriate hardware is available). Using quotes “…”
-allows some parameters to be included with the decoder name.
+pipeline’s h264 decoder element, instead of the default value
+“decodebin” which chooses it for you. Software decoding is done by
+avdec_h264; various hardware decoders include: vaapih264dec, nvdec,
+nvh264dec, v4l2h264dec (these require that the appropriate hardware is
+available). Using quotes “…” allows some parameters to be included with
+the decoder name.
-vc converter chooses the GStreamer
pipeline’s videoconverter element, instead of the default value
“videoconvert”. When using Video4Linux2 hardware-decoding by a
@@ -634,14 +659,14 @@
Usage
conversion. Using quotes “…” allows some parameters to be included with
the converter name.
-vs videosink chooses the GStreamer
-videosink, instead of letting autovideosink pick it for you. Some
-videosink choices are: ximagesink, xvimagesink, vaapisink (for intel
-graphics), gtksink, glimagesink, waylandsink, osximagesink (for macOS),
-kmssink (for systems without X11, like Raspberry Pi OS lite) or
-fpsdisplaysink (which shows the streaming framerate in fps). Using
-quotes “…” allows some parameters to be included with the videosink
-name. For example, fullscreen mode is supported by the
-vaapisink plugin, and is obtained using
+videosink, instead of the default value “autovideosink” which chooses it
+for you. Some videosink choices are: ximagesink, xvimagesink, vaapisink
+(for intel graphics), gtksink, glimagesink, waylandsink, osximagesink
+(for macOS), kmssink (for systems without X11, like Raspberry Pi OS
+lite) or fpsdisplaysink (which shows the streaming framerate in fps).
+Using quotes “…” allows some parameters to be included with the
+videosink name. For example, fullscreen mode is
+supported by the vaapisink plugin, and is obtained using
-vs "vaapisink fullscreen=true"
; this also works with
waylandsink
. The syntax of such options is specific to a
given plugin, and some choices of videosink might not work on your
@@ -706,6 +731,9 @@
Usage
used by default in macOS, as the window created in macOS by GStreamer
does not terminate correctly (it causes a segfault) if it is still open
when the GStreamer pipeline is closed.
+-nohold Drops the current connection when a new
+client attempts to connect. Without this option, the current client
+maintains exclusive ownership of UxPlay until it disconnects.
-FPSdata Turns on monitoring of regular reports
about video streaming performance that are sent by the client. These
will be displayed in the terminal window if this option is used. The
@@ -761,9 +789,9 @@
Usage
-d Enable debug output. Note: this does not show
GStreamer error or debug messages. To see GStreamer error and warning
messages, set the environment variable GST_DEBUG with “export
-GST_DEBUG=2” before running uxplay. To see GStreamer debug messages, set
-GST_DEBUG=4; increase this to see even more of the GStreamer inner
-workings.
+GST_DEBUG=2” before running uxplay. To see GStreamer information
+messages, set GST_DEBUG=4; for DEBUG messages, GST_DEBUG=5; increase
+this to see even more of the GStreamer inner workings.
Troubleshooting
Note: uxplay
is run from a terminal command line, and
informational messages are written to the terminal.
@@ -962,6 +990,8 @@ 5. Mirror screen freezes:
the client by the AirPlay server) to be set. The “features” code and
other settings are set in UxPlay/lib/dnssdint.h
.
Changelog
+1.58 2022-10-29 Add option “-nohold” that will drop existing
+connections when a new client connects. Update llhttp to v8.1.0.
1.57 2022-10-09 Minor fixes: (fix coredump on AUR on “stop
mirroring”, occurs when compiled with AUR CFLAGS -DFORTIFY_SOURCE);
graceful exit when required plugins are missing; improved support for
diff --git a/README.md b/README.md
index 97da4196..d49c4bd8 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# UxPlay 1.57: AirPlay-Mirror and AirPlay-Audio server for Linux, macOS, and Unix (now also runs on Windows).
+# UxPlay 1.58: AirPlay-Mirror and AirPlay-Audio server for Linux, macOS, and Unix (now also runs on Windows).
### Now developed at the GitHub site [https://github.com/FDH2/UxPlay](https://github.com/FDH2/UxPlay) (where all user issues should be posted).
@@ -14,7 +14,7 @@ Highlights:
as the server running UxPlay. Using AirPlay, UxPlay can
emulate a second display for macOS clients.
* Support for older iOS clients (such as 32-bit iPad 2nd gen., iPod Touch 5th gen. and
- iPhone 4S, when upgraded to iOS 9.3.5, or later 64-bit versions), plus a
+ iPhone 4S, when upgraded to iOS 9.3.5, or later 64-bit devices), plus a
Windows AirPlay-client emulator, AirMyPC.
* Uses GStreamer plugins for audio and video rendering (with options
to select different hardware-appropriate output "videosinks" and
@@ -22,7 +22,7 @@ Highlights:
* Support for server behind a firewall.
* **New**: Support for Raspberry Pi, with hardware video acceleration using
Video4Linux2 (v4l2), which supports both 32- and 64-bit systems: this is the replacement for
- 32-bit-only OpenMAX (omx), for which support by RPi distributions is being discontinued. (Until GStreamer 1.22
+ 32-bit-only OpenMAX (omx), no longer actively supported by RPi distributions. (Until GStreamer 1.22
is released, a backport of changes from the GStreamer development branch is needed: this has now been done
by Raspberry Pi OS (Bullseye); for other distributions
a [patch](https://github.com/FDH2/UxPlay/wiki/Gstreamer-Video4Linux2-plugin-patches)
@@ -249,6 +249,10 @@ UxPlay from receiving client connection requests unless some network ports
are opened. See [Troubleshooting](#troubleshooting) below for
help with this or other problems.
+* By default, UxPlay is locked to
+its current client until that client drops the connection; the option `-nohold` modifies this
+behavior so that when a new client requests a connection, it removes the current client and takes over.
+
To display the accompanying "Cover Art" from sources like Apple Music in Audio-Only (ALAC) mode,
run "`uxplay -ca &`" in the background, then run a image viewer with an autoreload feature: an example
is "feh": run "``feh -R 1 ``"
@@ -265,12 +269,16 @@ See [Usage](#usage) for more run-time options.
### **Special instructions for Raspberry Pi (only tested on model 4B)**:
-* For good performance, the Raspberry Pi needs the GStreamer Video4linux2 plugin to use its Broadcom GPU hardware for decoding h264 video.
-You can also test UxPlay with software-only video decoding using option `-avdec`.
-
+* For good performance, the Raspberry Pi needs the GStreamer Video4linux2 plugin to use its Broadcom GPU hardware
+for decoding h264 video. The plugin accesses the GPU using the bcm2835_codec kernel module
+which is maintained by Raspberry Pi in the drivers/staging/VC04_services part of
+the [Raspberry Pi kernel tree](https://github.com/raspberrypi/linux), but
+is not yet included in the mainline Linux kernel. Distributions for R Pi that supply it include Raspberry Pi OS, Ubuntu,
+and Manjaro. Some others may not. **Without this kernel module, UxPlay cannot use the GPU.**
-* The upcoming GStreamer-1.22 release will work well, but older releases of GStreamer will not work unless patched with backports of the
-improvements from GStreamer-1.22. Raspberry Pi OS (Bullseye) now has the needed backports. For other distributions, patches for GStreamer
+* The plugin in the upcoming GStreamer-1.22 release will work well, but the one in older releases of GStreamer will not
+work unless patched with backports of the improvements from GStreamer-1.22. Raspberry Pi OS (Bullseye) now has a
+working backport. For a fuller backport, or for other distributions, patches for the GStreamer Video4Linux2 plugin
are [available with instructions in the UxPlay Wiki](https://github.com/FDH2/UxPlay/wiki/Gstreamer-Video4Linux2-plugin-patches).
The basic uxplay options for R Pi are ```uxplay [-v4l2] [-vs ]```. The
@@ -284,10 +292,15 @@ provides the best results.
* **For UxPlay-1.56 and later, if you are not using the latest GStreamer patches from the Wiki, you will need to use the UxPlay option `-bt709`**:
previously the GStreamer v4l2 plugin could
-not recognise Apple's color format (an unusual "full-range" variant of the bt709 HDTV standard), which -bt709 fixes. GStreamer-1.20.4 will have
-a fix for this, which is included in the latest patches, so beginning with UxPlay-1.56, the bt709 fix is no longer automatically applied.
-**After a recent update, Raspberry Pi OS (Bullseye) now supplies an already-patched GStreamer-1.18.4 that works with UxPlay, but
-needs the `-bt709` option with UxPlay-1.56 or later.**
+not recognise Apple's color format (an unusual "full-range" variant of the bt709 HDTV standard), which -bt709 fixes. GStreamer-1.20.4 has
+a fix for this, which is included in the latest patches, so beginning with UxPlay-1.56, the bt709 fix is no longer automatically
+applied.
+
+* As mentioned, **Raspberry Pi OS (Bullseye) now supplies a GStreamer-1.18.4 package with backports that works
+with UxPlay, but needs the `-bt709` option with UxPlay-1.56 or later.** Although this Raspberry Pi OS
+package gstreamer1.0-plugins-good-1.18.4-2+deb11u1+rpt1 works without having to be patched,
+**don't use options `-v4l2` and ``-rpi*`` with it, as they
+cause a crash if the client screen is rotated**. (This does not occur when the patch from the UxPlay Wiki has been applied.)
* Tip: to start UxPlay on a remote host (such as a Raspberry Pi) using ssh:
@@ -304,14 +317,19 @@ needs the `-bt709` option with UxPlay-1.56 or later.**
* **Red Hat, Fedora, CentOS (now continued as Rocky Linux or Alma Linux):**
(sudo yum install) openssl-devel libplist-devel avahi-compat-libdns_sd-devel (some from the "PowerTools" add-on repository)
-(+libX11-devel for ZOOMFIX). The required GStreamer packages (some from [rpmfusion.org](https://rpmfusion.org)) are:
-gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-libav gstreamer1-plugins-bad-free (+ gstreamer1-vaapi for intel graphics).
+(+libX11-devel for ZOOMFIX). The required GStreamer packages are:
+gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-libav gstreamer1-plugins-bad-free (+ gstreamer1-vaapi
+for intel graphics);
+you may need to get some of them (in particular gstreamer1-libav) from [rpmfusion.org](https://rpmfusion.org)
+(which provides packages including plugins that RedHat does not ship for license reasons).
* **OpenSUSE:**
(sudo zypper install) libopenssl-devel libplist-devel
-avahi-compat-mDNSResponder-devel (+ libX11-devel for ZOOMFIX). The required
-GStreamer packages are: gstreamer-devel gstreamer-plugins-base-devel gstreamer-plugins-libav gstreamer-plugins-bad (+ gstreamer-plugins-vaapi for Intel graphics); in some cases,
-you may need to use gstreamer packages for OpenSUSE from [Packman](https://ftp.gwdg.de/pub/linux/misc/packman/suse/) "Essentials".
+avahi-compat-mDNSResponder-devel (+ libX11-devel for ZOOMFIX). The required GStreamer packages are: gstreamer-devel
+gstreamer-plugins-base-devel gstreamer-plugins-libav gstreamer-plugins-bad (+ gstreamer-plugins-vaapi
+for Intel graphics); in some cases, you may need to use gstreamer packages for OpenSUSE
+from [Packman](https://ftp.gwdg.de/pub/linux/misc/packman/suse/) "Essentials"
+(which provides packages including plugins that OpenSUSE does not ship for license reasons).
* **Arch Linux**
@@ -348,8 +366,8 @@ Next get the latest macOS release of GStreamer-1.0.
from [https://gstreamer.freedesktop.org/download/](https://gstreamer.freedesktop.org/download/). The alternative is to install it from Homebrew
(MacPorts also supplies it, but compiled to use X11).
-**For the "official" release**: install both the macOS runtime and development installer packages. Assuming that the latest release is 1.20.3.
-install `gstreamer-1.0-1.20.3-universal.pkg` and ``gstreamer-1.0-devel-1.20.3-universal.pkg``. (If
+**For the "official" release**: install both the macOS runtime and development installer packages. Assuming that the latest release is 1.20.4.
+install `gstreamer-1.0-1.20.4-universal.pkg` and ``gstreamer-1.0-devel-1.20.4-universal.pkg``. (If
you have an Intel-architecture Mac, and have problems with the "universal" packages, you can also
use `gstreamer-1.0-1.18.6-x86_64.pkg` and ``gstreamer-1.0-devel-1.18.6-x86_64.pkg``.) Click on them to
install (they install to /Library/FrameWorks/GStreamer.framework).
@@ -380,7 +398,9 @@ Finally, build and install uxplay (without ZOOMFIX): open a terminal and change
* In the case of glimagesink, the resolution settings "-s wxh" do not affect
the (small) initial OpenGL mirror window size, but the window can be expanded using the mouse or trackpad.
In contrast, a window created with "-vs osxvideosink" is initially big, but has the wrong aspect ratio (stretched image);
- in this case the aspect ratio changes when the window width is changed by dragging its side.
+ in this case the aspect ratio changes when the window width is changed by dragging its side;
+ the option "-vs osxvideosink force-aspect-ratio=true" can be used to make the window have the
+ correct aspect ratio when it first opens.
***Using GStreamer installed from MacPorts (not recommended):***
@@ -532,8 +552,8 @@ which will not work if a firewall is running.
**-vp _parser_** choses the GStreamer pipeline's h264 parser element, default is h264parse. Using
quotes "..." allows options to be added.
-**-vd _decoder_** chooses the GStreamer pipeline's h264 decoder element, instead of letting
- decodebin pick it for you. Software decoding is done by avdec_h264; various hardware decoders
+**-vd _decoder_** chooses the GStreamer pipeline's h264 decoder element, instead of the default value
+ "decodebin" which chooses it for you. Software decoding is done by avdec_h264; various hardware decoders
include: vaapih264dec, nvdec, nvh264dec, v4l2h264dec (these require that the appropriate hardware is
available). Using quotes "..." allows some parameters to be included with the decoder name.
@@ -541,9 +561,10 @@ which will not work if a firewall is running.
value "videoconvert". When using Video4Linux2 hardware-decoding by a GPU,`-vc v4l2convert` will also use
the GPU for video conversion. Using quotes "..." allows some parameters to be included with the converter name.
-**-vs _videosink_** chooses the GStreamer videosink, instead of letting
- autovideosink pick it for you. Some videosink choices are: ximagesink, xvimagesink,
- vaapisink (for intel graphics), gtksink, glimagesink, waylandsink, osximagesink (for macOS), kmssink (for systems without X11, like Raspberry Pi OS lite) or
+**-vs _videosink_** chooses the GStreamer videosink, instead of the default value
+ "autovideosink" which chooses it for you. Some videosink choices are: ximagesink, xvimagesink,
+ vaapisink (for intel graphics), gtksink, glimagesink, waylandsink, osximagesink (for macOS), kmssink (for
+ systems without X11, like Raspberry Pi OS lite) or
fpsdisplaysink (which shows the streaming framerate in fps). Using quotes
"..." allows some parameters to be included with the videosink name.
For example, **fullscreen** mode is supported by the vaapisink plugin, and is
@@ -600,6 +621,9 @@ which will not work if a firewall is running.
as the window created in macOS by GStreamer does not terminate correctly (it causes a segfault)
if it is still open when the GStreamer pipeline is closed._
+**-nohold** Drops the current connection when a new client attempts to connect. Without this option,
+ the current client maintains exclusive ownership of UxPlay until it disconnects.
+
**-FPSdata** Turns on monitoring of regular reports about video streaming performance
that are sent by the client. These will be displayed in the terminal window if this
option is used. The data is updated by the client at 1 second intervals.
@@ -649,7 +673,8 @@ which will not work if a firewall is running.
**-d** Enable debug output. Note: this does not show GStreamer error or debug messages. To see GStreamer error
and warning messages, set the environment variable GST_DEBUG with "export GST_DEBUG=2" before running uxplay.
- To see GStreamer debug messages, set GST_DEBUG=4; increase this to see even more of the GStreamer inner workings.
+ To see GStreamer information messages, set GST_DEBUG=4; for DEBUG messages, GST_DEBUG=5; increase this to see even
+ more of the GStreamer inner workings.
# Troubleshooting
@@ -809,6 +834,9 @@ tvOS 12.2.1); it seems that the use of "legacy" protocol just requires bit 27 (l
The "features" code and other settings are set in `UxPlay/lib/dnssdint.h`.
# Changelog
+1.58 2022-10-29 Add option "-nohold" that will drop existing connections when a new client connects.
+ Update llhttp to v8.1.0.
+
1.57 2022-10-09 Minor fixes: (fix coredump on AUR on "stop mirroring", occurs when compiled with
AUR CFLAGS -DFORTIFY_SOURCE); graceful exit when required plugins are missing;
improved support for builds on Windows. Include audioresample in GStreamer
diff --git a/README.txt b/README.txt
index bc156b89..f964d089 100644
--- a/README.txt
+++ b/README.txt
@@ -1,4 +1,4 @@
-# UxPlay 1.57: AirPlay-Mirror and AirPlay-Audio server for Linux, macOS, and Unix (now also runs on Windows).
+# UxPlay 1.58: AirPlay-Mirror and AirPlay-Audio server for Linux, macOS, and Unix (now also runs on Windows).
### Now developed at the GitHub site (where all user issues should be posted).
@@ -18,7 +18,7 @@ Highlights:
- Support for older iOS clients (such as 32-bit iPad 2nd gen., iPod
Touch 5th gen. and iPhone 4S, when upgraded to iOS 9.3.5, or later
- 64-bit versions), plus a Windows AirPlay-client emulator, AirMyPC.
+ 64-bit devices), plus a Windows AirPlay-client emulator, AirMyPC.
- Uses GStreamer plugins for audio and video rendering (with options
to select different hardware-appropriate output "videosinks" and
@@ -29,9 +29,9 @@ Highlights:
- **New**: Support for Raspberry Pi, with hardware video acceleration
using Video4Linux2 (v4l2), which supports both 32- and 64-bit
- systems: this is the replacement for 32-bit-only OpenMAX (omx), for
- which support by RPi distributions is being discontinued. (Until
- GStreamer 1.22 is released, a backport of changes from the GStreamer
+ systems: this is the replacement for 32-bit-only OpenMAX (omx), no
+ longer actively supported by RPi distributions. (Until GStreamer
+ 1.22 is released, a backport of changes from the GStreamer
development branch is needed: this has now been done by Raspberry Pi
OS (Bullseye); for other distributions a
[patch](https://github.com/FDH2/UxPlay/wiki/Gstreamer-Video4Linux2-plugin-patches)
@@ -293,6 +293,11 @@ prevents UxPlay from receiving client connection requests unless some
network ports are opened. See [Troubleshooting](#troubleshooting) below
for help with this or other problems.
+- By default, UxPlay is locked to its current client until that client
+ drops the connection; the option `-nohold` modifies this behavior so
+ that when a new client requests a connection, it removes the current
+ client and takes over.
+
To display the accompanying "Cover Art" from sources like Apple Music in
Audio-Only (ALAC) mode, run "`uxplay -ca &`" in the background,
then run a image viewer with an autoreload feature: an example is "feh":
@@ -312,14 +317,20 @@ options.
- For good performance, the Raspberry Pi needs the GStreamer
Video4linux2 plugin to use its Broadcom GPU hardware for decoding
- h264 video. You can also test UxPlay with software-only video
- decoding using option `-avdec`.
-
-- The upcoming GStreamer-1.22 release will work well, but older
- releases of GStreamer will not work unless patched with backports of
- the improvements from GStreamer-1.22. Raspberry Pi OS (Bullseye) now
- has the needed backports. For other distributions, patches for
- GStreamer are [available with instructions in the UxPlay
+ h264 video. The plugin accesses the GPU using the bcm2835_codec
+ kernel module which is maintained by Raspberry Pi in the
+ drivers/staging/VC04_services part of the [Raspberry Pi kernel
+ tree](https://github.com/raspberrypi/linux), but is not yet included
+ in the mainline Linux kernel. Distributions for R Pi that supply it
+ include Raspberry Pi OS, Ubuntu, and Manjaro. Some others may not.
+ **Without this kernel module, UxPlay cannot use the GPU.**
+
+- The plugin in the upcoming GStreamer-1.22 release will work well,
+ but the one in older releases of GStreamer will not work unless
+ patched with backports of the improvements from GStreamer-1.22.
+ Raspberry Pi OS (Bullseye) now has a working backport. For a fuller
+ backport, or for other distributions, patches for the GStreamer
+ Video4Linux2 plugin are [available with instructions in the UxPlay
Wiki](https://github.com/FDH2/UxPlay/wiki/Gstreamer-Video4Linux2-plugin-patches).
The basic uxplay options for R Pi are
@@ -338,12 +349,18 @@ results.
GStreamer patches from the Wiki, you will need to use the UxPlay
option `-bt709`**: previously the GStreamer v4l2 plugin could not
recognise Apple's color format (an unusual "full-range" variant of
- the bt709 HDTV standard), which -bt709 fixes. GStreamer-1.20.4 will
- have a fix for this, which is included in the latest patches, so
- beginning with UxPlay-1.56, the bt709 fix is no longer automatically
- applied. **After a recent update, Raspberry Pi OS (Bullseye) now
- supplies an already-patched GStreamer-1.18.4 that works with UxPlay,
- but needs the `-bt709` option with UxPlay-1.56 or later.**
+ the bt709 HDTV standard), which -bt709 fixes. GStreamer-1.20.4 has a
+ fix for this, which is included in the latest patches, so beginning
+ with UxPlay-1.56, the bt709 fix is no longer automatically applied.
+
+- As mentioned, **Raspberry Pi OS (Bullseye) now supplies a
+ GStreamer-1.18.4 package with backports that works with UxPlay, but
+ needs the `-bt709` option with UxPlay-1.56 or later.** Although this
+ Raspberry Pi OS package
+ gstreamer1.0-plugins-good-1.18.4-2+deb11u1+rpt1 works without having
+ to be patched, **don't use options `-v4l2` and `-rpi*` with it, as
+ they cause a crash if the client screen is rotated**. (This does not
+ occur when the patch from the UxPlay Wiki has been applied.)
- Tip: to start UxPlay on a remote host (such as a Raspberry Pi) using
ssh:
@@ -365,9 +382,12 @@ running if the ssh session is closed. Terminal output is saved to FILE
Linux):** (sudo yum install) openssl-devel libplist-devel
avahi-compat-libdns_sd-devel (some from the "PowerTools" add-on
repository) (+libX11-devel for ZOOMFIX). The required GStreamer
- packages (some from [rpmfusion.org](https://rpmfusion.org)) are:
- gstreamer1-devel gstreamer1-plugins-base-devel gstreamer1-libav
- gstreamer1-plugins-bad-free (+ gstreamer1-vaapi for intel graphics).
+ packages are: gstreamer1-devel gstreamer1-plugins-base-devel
+ gstreamer1-libav gstreamer1-plugins-bad-free (+ gstreamer1-vaapi for
+ intel graphics); you may need to get some of them (in particular
+ gstreamer1-libav) from [rpmfusion.org](https://rpmfusion.org) (which
+ provides packages including plugins that RedHat does not ship for
+ license reasons).
- **OpenSUSE:** (sudo zypper install) libopenssl-devel libplist-devel
avahi-compat-mDNSResponder-devel (+ libX11-devel for ZOOMFIX). The
@@ -377,7 +397,8 @@ running if the ssh session is closed. Terminal output is saved to FILE
graphics); in some cases, you may need to use gstreamer packages for
OpenSUSE from
[Packman](https://ftp.gwdg.de/pub/linux/misc/packman/suse/)
- "Essentials".
+ "Essentials" (which provides packages including plugins that
+ OpenSUSE does not ship for license reasons).
- **Arch Linux** (sudo pacman -Syu) openssl libplist avahi
gst-plugins-base gst-plugins-good gst-plugins-bad gst-libav (+
@@ -423,8 +444,8 @@ Next get the latest macOS release of GStreamer-1.0.
**For the "official" release**: install both the macOS runtime and
development installer packages. Assuming that the latest release is
-1.20.3. install `gstreamer-1.0-1.20.3-universal.pkg` and
-`gstreamer-1.0-devel-1.20.3-universal.pkg`. (If you have an
+1.20.4. install `gstreamer-1.0-1.20.4-universal.pkg` and
+`gstreamer-1.0-devel-1.20.4-universal.pkg`. (If you have an
Intel-architecture Mac, and have problems with the "universal" packages,
you can also use `gstreamer-1.0-1.18.6-x86_64.pkg` and
`gstreamer-1.0-devel-1.18.6-x86_64.pkg`.) Click on them to install (they
@@ -461,7 +482,9 @@ downloads, "UxPlay" for "git clone" downloads) and build/install with
can be expanded using the mouse or trackpad. In contrast, a window
created with "-vs osxvideosink" is initially big, but has the wrong
aspect ratio (stretched image); in this case the aspect ratio
- changes when the window width is changed by dragging its side.
+ changes when the window width is changed by dragging its side; the
+ option "-vs osxvideosink force-aspect-ratio=true" can be used to
+ make the window have the correct aspect ratio when it first opens.
***Using GStreamer installed from MacPorts (not recommended):***
@@ -642,11 +665,11 @@ vaapisink.
default is h264parse. Using quotes "..." allows options to be added.
**-vd *decoder*** chooses the GStreamer pipeline's h264 decoder element,
-instead of letting decodebin pick it for you. Software decoding is done
-by avdec_h264; various hardware decoders include: vaapih264dec, nvdec,
-nvh264dec, v4l2h264dec (these require that the appropriate hardware is
-available). Using quotes "..." allows some parameters to be included
-with the decoder name.
+instead of the default value "decodebin" which chooses it for you.
+Software decoding is done by avdec_h264; various hardware decoders
+include: vaapih264dec, nvdec, nvh264dec, v4l2h264dec (these require that
+the appropriate hardware is available). Using quotes "..." allows some
+parameters to be included with the decoder name.
**-vc *converter*** chooses the GStreamer pipeline's videoconverter
element, instead of the default value "videoconvert". When using
@@ -654,17 +677,17 @@ Video4Linux2 hardware-decoding by a GPU,`-vc v4l2convert` will also use
the GPU for video conversion. Using quotes "..." allows some parameters
to be included with the converter name.
-**-vs *videosink*** chooses the GStreamer videosink, instead of letting
-autovideosink pick it for you. Some videosink choices are: ximagesink,
-xvimagesink, vaapisink (for intel graphics), gtksink, glimagesink,
-waylandsink, osximagesink (for macOS), kmssink (for systems without X11,
-like Raspberry Pi OS lite) or fpsdisplaysink (which shows the streaming
-framerate in fps). Using quotes "..." allows some parameters to be
-included with the videosink name. For example, **fullscreen** mode is
-supported by the vaapisink plugin, and is obtained using
-`-vs "vaapisink fullscreen=true"`; this also works with `waylandsink`.
-The syntax of such options is specific to a given plugin, and some
-choices of videosink might not work on your system.
+**-vs *videosink*** chooses the GStreamer videosink, instead of the
+default value "autovideosink" which chooses it for you. Some videosink
+choices are: ximagesink, xvimagesink, vaapisink (for intel graphics),
+gtksink, glimagesink, waylandsink, osximagesink (for macOS), kmssink
+(for systems without X11, like Raspberry Pi OS lite) or fpsdisplaysink
+(which shows the streaming framerate in fps). Using quotes "..." allows
+some parameters to be included with the videosink name. For example,
+**fullscreen** mode is supported by the vaapisink plugin, and is
+obtained using `-vs "vaapisink fullscreen=true"`; this also works with
+`waylandsink`. The syntax of such options is specific to a given plugin,
+and some choices of videosink might not work on your system.
**-vs 0** suppresses display of streamed video, but plays streamed
audio. (The client's screen is still mirrored at a reduced rate of 1
@@ -731,6 +754,10 @@ window created in macOS by GStreamer does not terminate correctly (it
causes a segfault) if it is still open when the GStreamer pipeline is
closed.*
+**-nohold** Drops the current connection when a new client attempts to
+connect. Without this option, the current client maintains exclusive
+ownership of UxPlay until it disconnects.
+
**-FPSdata** Turns on monitoring of regular reports about video
streaming performance that are sent by the client. These will be
displayed in the terminal window if this option is used. The data is
@@ -791,8 +818,9 @@ audio players.*
**-d** Enable debug output. Note: this does not show GStreamer error or
debug messages. To see GStreamer error and warning messages, set the
environment variable GST_DEBUG with "export GST_DEBUG=2" before running
-uxplay. To see GStreamer debug messages, set GST_DEBUG=4; increase this
-to see even more of the GStreamer inner workings.
+uxplay. To see GStreamer information messages, set GST_DEBUG=4; for
+DEBUG messages, GST_DEBUG=5; increase this to see even more of the
+GStreamer inner workings.
# Troubleshooting
@@ -1004,6 +1032,9 @@ other settings are set in `UxPlay/lib/dnssdint.h`.
# Changelog
+1.58 2022-10-29 Add option "-nohold" that will drop existing connections
+when a new client connects. Update llhttp to v8.1.0.
+
1.57 2022-10-09 Minor fixes: (fix coredump on AUR on "stop mirroring",
occurs when compiled with AUR CFLAGS -DFORTIFY_SOURCE); graceful exit
when required plugins are missing; improved support for builds on
diff --git a/lib/httpd.c b/lib/httpd.c
index 3aeee494..134c67ef 100644
--- a/lib/httpd.c
+++ b/lib/httpd.c
@@ -97,6 +97,20 @@ httpd_destroy(httpd_t *httpd)
}
}
+static void
+httpd_remove_connection(httpd_t *httpd, http_connection_t *connection)
+{
+ if (connection->request) {
+ http_request_destroy(connection->request);
+ connection->request = NULL;
+ }
+ httpd->callbacks.conn_destroy(connection->user_data);
+ shutdown(connection->socket_fd, SHUT_WR);
+ closesocket(connection->socket_fd);
+ connection->connected = 0;
+ httpd->open_connections--;
+}
+
static int
httpd_add_connection(httpd_t *httpd, int fd, unsigned char *local, int local_len, unsigned char *remote, int remote_len)
{
@@ -158,6 +172,19 @@ httpd_accept_connection(httpd_t *httpd, int server_fd, int is_ipv6)
local = netutils_get_address(&local_saddr, &local_len);
remote = netutils_get_address(&remote_saddr, &remote_len);
+ /* for uxplay, remove existing connections to make way for new connections:
+ * this will only occur if max_connections > 2 */
+ if (httpd->open_connections >= 2) {
+ logger_log(httpd->logger, LOGGER_INFO, "Destroying current connections to allow connection by new client");
+ for (int i = 0; imax_connections; i++) {
+ http_connection_t *connection = &httpd->connections[i];
+ if (!connection->connected) {
+ continue;
+ }
+ httpd_remove_connection(httpd, connection);
+ }
+ }
+
ret = httpd_add_connection(httpd, fd, local, local_len, remote, remote_len);
if (ret == -1) {
shutdown(fd, SHUT_RDWR);
@@ -167,20 +194,6 @@ httpd_accept_connection(httpd_t *httpd, int server_fd, int is_ipv6)
return 1;
}
-static void
-httpd_remove_connection(httpd_t *httpd, http_connection_t *connection)
-{
- if (connection->request) {
- http_request_destroy(connection->request);
- connection->request = NULL;
- }
- httpd->callbacks.conn_destroy(connection->user_data);
- shutdown(connection->socket_fd, SHUT_WR);
- closesocket(connection->socket_fd);
- connection->connected = 0;
- httpd->open_connections--;
-}
-
static THREAD_RETVAL
httpd_thread(void *arg)
{
diff --git a/lib/llhttp/api.c b/lib/llhttp/api.c
index c4ce197c..4b687a5d 100644
--- a/lib/llhttp/api.c
+++ b/lib/llhttp/api.c
@@ -60,13 +60,26 @@ const llhttp_settings_t wasm_settings = {
wasm_on_message_begin,
wasm_on_url,
wasm_on_status,
+ NULL,
+ NULL,
wasm_on_header_field,
wasm_on_header_value,
+ NULL,
+ NULL,
wasm_on_headers_complete_wrap,
wasm_on_body,
wasm_on_message_complete,
NULL,
NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
};
@@ -80,6 +93,8 @@ void llhttp_free(llhttp_t* parser) {
free(parser);
}
+#endif // defined(__wasm__)
+
/* Some getters required to get stuff from the parser */
uint8_t llhttp_get_type(llhttp_t* parser) {
@@ -106,8 +121,6 @@ uint8_t llhttp_get_upgrade(llhttp_t* parser) {
return parser->upgrade;
}
-#endif // defined(__wasm__)
-
void llhttp_reset(llhttp_t* parser) {
llhttp_type_t type = parser->type;
@@ -226,6 +239,15 @@ const char* llhttp_method_name(llhttp_method_t method) {
#undef HTTP_METHOD_GEN
}
+const char* llhttp_status_name(llhttp_status_t status) {
+#define HTTP_STATUS_GEN(NUM, NAME, STRING) case HTTP_STATUS_##NAME: return #STRING;
+ switch (status) {
+ HTTP_STATUS_MAP(HTTP_STATUS_GEN)
+ default: abort();
+ }
+#undef HTTP_STATUS_GEN
+}
+
void llhttp_set_lenient_headers(llhttp_t* parser, int enabled) {
if (enabled) {
@@ -299,6 +321,34 @@ int llhttp__on_status_complete(llhttp_t* s, const char* p, const char* endp) {
}
+int llhttp__on_method(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ SPAN_CALLBACK_MAYBE(s, on_method, p, endp - p);
+ return err;
+}
+
+
+int llhttp__on_method_complete(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ CALLBACK_MAYBE(s, on_method_complete);
+ return err;
+}
+
+
+int llhttp__on_version(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ SPAN_CALLBACK_MAYBE(s, on_version, p, endp - p);
+ return err;
+}
+
+
+int llhttp__on_version_complete(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ CALLBACK_MAYBE(s, on_version_complete);
+ return err;
+}
+
+
int llhttp__on_header_field(llhttp_t* s, const char* p, const char* endp) {
int err;
SPAN_CALLBACK_MAYBE(s, on_header_field, p, endp - p);
@@ -355,6 +405,34 @@ int llhttp__on_chunk_header(llhttp_t* s, const char* p, const char* endp) {
}
+int llhttp__on_chunk_extension_name(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ SPAN_CALLBACK_MAYBE(s, on_chunk_extension_name, p, endp - p);
+ return err;
+}
+
+
+int llhttp__on_chunk_extension_name_complete(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ CALLBACK_MAYBE(s, on_chunk_extension_name_complete);
+ return err;
+}
+
+
+int llhttp__on_chunk_extension_value(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ SPAN_CALLBACK_MAYBE(s, on_chunk_extension_value, p, endp - p);
+ return err;
+}
+
+
+int llhttp__on_chunk_extension_value_complete(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ CALLBACK_MAYBE(s, on_chunk_extension_value_complete);
+ return err;
+}
+
+
int llhttp__on_chunk_complete(llhttp_t* s, const char* p, const char* endp) {
int err;
CALLBACK_MAYBE(s, on_chunk_complete);
@@ -362,6 +440,13 @@ int llhttp__on_chunk_complete(llhttp_t* s, const char* p, const char* endp) {
}
+int llhttp__on_reset(llhttp_t* s, const char* p, const char* endp) {
+ int err;
+ CALLBACK_MAYBE(s, on_reset);
+ return err;
+}
+
+
/* Private */
diff --git a/lib/llhttp/llhttp.c b/lib/llhttp/llhttp.c
index 296a1a75..b92bf839 100644
--- a/lib/llhttp/llhttp.c
+++ b/lib/llhttp/llhttp.c
@@ -339,11 +339,25 @@ enum llparse_state_e {
s_n_llhttp__internal__n_span_start_llhttp__on_body,
s_n_llhttp__internal__n_invoke_is_equal_content_length,
s_n_llhttp__internal__n_chunk_size_almost_done,
- s_n_llhttp__internal__n_chunk_parameters,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete,
+ s_n_llhttp__internal__n_chunk_extension_quoted_value_done,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1,
+ s_n_llhttp__internal__n_error_21,
+ s_n_llhttp__internal__n_chunk_extension_quoted_value,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2,
+ s_n_llhttp__internal__n_error_23,
+ s_n_llhttp__internal__n_chunk_extension_value,
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value,
+ s_n_llhttp__internal__n_error_24,
+ s_n_llhttp__internal__n_chunk_extension_name,
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name,
+ s_n_llhttp__internal__n_chunk_extensions,
s_n_llhttp__internal__n_chunk_size_otherwise,
s_n_llhttp__internal__n_chunk_size,
s_n_llhttp__internal__n_chunk_size_digit,
- s_n_llhttp__internal__n_invoke_update_content_length,
+ s_n_llhttp__internal__n_invoke_update_content_length_1,
s_n_llhttp__internal__n_consume_content_length_1,
s_n_llhttp__internal__n_span_start_llhttp__on_body_1,
s_n_llhttp__internal__n_eof,
@@ -351,7 +365,7 @@ enum llparse_state_e {
s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete,
s_n_llhttp__internal__n_headers_almost_done,
s_n_llhttp__internal__n_header_field_colon_discard_ws,
- s_n_llhttp__internal__n_error_19,
+ s_n_llhttp__internal__n_error_33,
s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete,
s_n_llhttp__internal__n_span_start_llhttp__on_header_value,
s_n_llhttp__internal__n_header_value_discard_lws,
@@ -359,8 +373,7 @@ enum llparse_state_e {
s_n_llhttp__internal__n_header_value_lws,
s_n_llhttp__internal__n_header_value_almost_done,
s_n_llhttp__internal__n_header_value_lenient,
- s_n_llhttp__internal__n_error_23,
- s_n_llhttp__internal__n_header_value_lenient_failed,
+ s_n_llhttp__internal__n_error_40,
s_n_llhttp__internal__n_header_value_otherwise,
s_n_llhttp__internal__n_header_value_connection_token,
s_n_llhttp__internal__n_header_value_connection_ws,
@@ -368,12 +381,12 @@ enum llparse_state_e {
s_n_llhttp__internal__n_header_value_connection_2,
s_n_llhttp__internal__n_header_value_connection_3,
s_n_llhttp__internal__n_header_value_connection,
- s_n_llhttp__internal__n_error_26,
- s_n_llhttp__internal__n_error_27,
+ s_n_llhttp__internal__n_error_42,
+ s_n_llhttp__internal__n_error_43,
s_n_llhttp__internal__n_header_value_content_length_ws,
s_n_llhttp__internal__n_header_value_content_length,
- s_n_llhttp__internal__n_error_29,
- s_n_llhttp__internal__n_error_28,
+ s_n_llhttp__internal__n_error_45,
+ s_n_llhttp__internal__n_error_44,
s_n_llhttp__internal__n_header_value_te_token_ows,
s_n_llhttp__internal__n_header_value,
s_n_llhttp__internal__n_header_value_te_token,
@@ -395,6 +408,7 @@ enum llparse_state_e {
s_n_llhttp__internal__n_header_field,
s_n_llhttp__internal__n_span_start_llhttp__on_header_field,
s_n_llhttp__internal__n_header_field_start,
+ s_n_llhttp__internal__n_headers_start,
s_n_llhttp__internal__n_url_to_http_09,
s_n_llhttp__internal__n_url_skip_to_http09,
s_n_llhttp__internal__n_url_skip_lf_to_http09_1,
@@ -402,9 +416,16 @@ enum llparse_state_e {
s_n_llhttp__internal__n_req_pri_upgrade,
s_n_llhttp__internal__n_req_http_complete_1,
s_n_llhttp__internal__n_req_http_complete,
+ s_n_llhttp__internal__n_invoke_load_method_1,
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete,
+ s_n_llhttp__internal__n_error_50,
+ s_n_llhttp__internal__n_error_55,
s_n_llhttp__internal__n_req_http_minor,
+ s_n_llhttp__internal__n_error_56,
s_n_llhttp__internal__n_req_http_dot,
+ s_n_llhttp__internal__n_error_57,
s_n_llhttp__internal__n_req_http_major,
+ s_n_llhttp__internal__n_span_start_llhttp__on_version,
s_n_llhttp__internal__n_req_http_start_1,
s_n_llhttp__internal__n_req_http_start_2,
s_n_llhttp__internal__n_req_http_start_3,
@@ -432,76 +453,78 @@ enum llparse_state_e {
s_n_llhttp__internal__n_url_entry_connect,
s_n_llhttp__internal__n_req_spaces_before_url,
s_n_llhttp__internal__n_req_first_space_before_url,
- s_n_llhttp__internal__n_start_req_2,
- s_n_llhttp__internal__n_start_req_3,
- s_n_llhttp__internal__n_start_req_1,
- s_n_llhttp__internal__n_start_req_4,
- s_n_llhttp__internal__n_start_req_6,
- s_n_llhttp__internal__n_start_req_8,
- s_n_llhttp__internal__n_start_req_9,
- s_n_llhttp__internal__n_start_req_7,
- s_n_llhttp__internal__n_start_req_5,
- s_n_llhttp__internal__n_start_req_12,
- s_n_llhttp__internal__n_start_req_13,
- s_n_llhttp__internal__n_start_req_11,
- s_n_llhttp__internal__n_start_req_10,
- s_n_llhttp__internal__n_start_req_14,
- s_n_llhttp__internal__n_start_req_17,
- s_n_llhttp__internal__n_start_req_16,
- s_n_llhttp__internal__n_start_req_15,
- s_n_llhttp__internal__n_start_req_18,
- s_n_llhttp__internal__n_start_req_20,
- s_n_llhttp__internal__n_start_req_21,
- s_n_llhttp__internal__n_start_req_19,
- s_n_llhttp__internal__n_start_req_23,
- s_n_llhttp__internal__n_start_req_24,
- s_n_llhttp__internal__n_start_req_26,
- s_n_llhttp__internal__n_start_req_28,
- s_n_llhttp__internal__n_start_req_29,
- s_n_llhttp__internal__n_start_req_27,
- s_n_llhttp__internal__n_start_req_25,
- s_n_llhttp__internal__n_start_req_30,
- s_n_llhttp__internal__n_start_req_22,
- s_n_llhttp__internal__n_start_req_31,
- s_n_llhttp__internal__n_start_req_32,
- s_n_llhttp__internal__n_start_req_35,
- s_n_llhttp__internal__n_start_req_36,
- s_n_llhttp__internal__n_start_req_34,
- s_n_llhttp__internal__n_start_req_37,
- s_n_llhttp__internal__n_start_req_38,
- s_n_llhttp__internal__n_start_req_42,
- s_n_llhttp__internal__n_start_req_43,
- s_n_llhttp__internal__n_start_req_41,
- s_n_llhttp__internal__n_start_req_40,
- s_n_llhttp__internal__n_start_req_39,
- s_n_llhttp__internal__n_start_req_45,
- s_n_llhttp__internal__n_start_req_44,
- s_n_llhttp__internal__n_start_req_33,
- s_n_llhttp__internal__n_start_req_48,
- s_n_llhttp__internal__n_start_req_49,
- s_n_llhttp__internal__n_start_req_50,
- s_n_llhttp__internal__n_start_req_51,
- s_n_llhttp__internal__n_start_req_47,
- s_n_llhttp__internal__n_start_req_46,
- s_n_llhttp__internal__n_start_req_54,
- s_n_llhttp__internal__n_start_req_56,
- s_n_llhttp__internal__n_start_req_57,
- s_n_llhttp__internal__n_start_req_55,
- s_n_llhttp__internal__n_start_req_53,
- s_n_llhttp__internal__n_start_req_58,
- s_n_llhttp__internal__n_start_req_59,
- s_n_llhttp__internal__n_start_req_52,
- s_n_llhttp__internal__n_start_req_61,
- s_n_llhttp__internal__n_start_req_62,
- s_n_llhttp__internal__n_start_req_60,
- s_n_llhttp__internal__n_start_req_65,
- s_n_llhttp__internal__n_start_req_67,
- s_n_llhttp__internal__n_start_req_68,
- s_n_llhttp__internal__n_start_req_66,
- s_n_llhttp__internal__n_start_req_69,
- s_n_llhttp__internal__n_start_req_64,
- s_n_llhttp__internal__n_start_req_63,
- s_n_llhttp__internal__n_start_req,
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1,
+ s_n_llhttp__internal__n_after_start_req_2,
+ s_n_llhttp__internal__n_after_start_req_3,
+ s_n_llhttp__internal__n_after_start_req_1,
+ s_n_llhttp__internal__n_after_start_req_4,
+ s_n_llhttp__internal__n_after_start_req_6,
+ s_n_llhttp__internal__n_after_start_req_8,
+ s_n_llhttp__internal__n_after_start_req_9,
+ s_n_llhttp__internal__n_after_start_req_7,
+ s_n_llhttp__internal__n_after_start_req_5,
+ s_n_llhttp__internal__n_after_start_req_12,
+ s_n_llhttp__internal__n_after_start_req_13,
+ s_n_llhttp__internal__n_after_start_req_11,
+ s_n_llhttp__internal__n_after_start_req_10,
+ s_n_llhttp__internal__n_after_start_req_14,
+ s_n_llhttp__internal__n_after_start_req_17,
+ s_n_llhttp__internal__n_after_start_req_16,
+ s_n_llhttp__internal__n_after_start_req_15,
+ s_n_llhttp__internal__n_after_start_req_18,
+ s_n_llhttp__internal__n_after_start_req_20,
+ s_n_llhttp__internal__n_after_start_req_21,
+ s_n_llhttp__internal__n_after_start_req_19,
+ s_n_llhttp__internal__n_after_start_req_23,
+ s_n_llhttp__internal__n_after_start_req_24,
+ s_n_llhttp__internal__n_after_start_req_26,
+ s_n_llhttp__internal__n_after_start_req_28,
+ s_n_llhttp__internal__n_after_start_req_29,
+ s_n_llhttp__internal__n_after_start_req_27,
+ s_n_llhttp__internal__n_after_start_req_25,
+ s_n_llhttp__internal__n_after_start_req_30,
+ s_n_llhttp__internal__n_after_start_req_22,
+ s_n_llhttp__internal__n_after_start_req_31,
+ s_n_llhttp__internal__n_after_start_req_32,
+ s_n_llhttp__internal__n_after_start_req_35,
+ s_n_llhttp__internal__n_after_start_req_36,
+ s_n_llhttp__internal__n_after_start_req_34,
+ s_n_llhttp__internal__n_after_start_req_37,
+ s_n_llhttp__internal__n_after_start_req_38,
+ s_n_llhttp__internal__n_after_start_req_42,
+ s_n_llhttp__internal__n_after_start_req_43,
+ s_n_llhttp__internal__n_after_start_req_41,
+ s_n_llhttp__internal__n_after_start_req_40,
+ s_n_llhttp__internal__n_after_start_req_39,
+ s_n_llhttp__internal__n_after_start_req_45,
+ s_n_llhttp__internal__n_after_start_req_44,
+ s_n_llhttp__internal__n_after_start_req_33,
+ s_n_llhttp__internal__n_after_start_req_48,
+ s_n_llhttp__internal__n_after_start_req_49,
+ s_n_llhttp__internal__n_after_start_req_50,
+ s_n_llhttp__internal__n_after_start_req_51,
+ s_n_llhttp__internal__n_after_start_req_47,
+ s_n_llhttp__internal__n_after_start_req_46,
+ s_n_llhttp__internal__n_after_start_req_54,
+ s_n_llhttp__internal__n_after_start_req_56,
+ s_n_llhttp__internal__n_after_start_req_57,
+ s_n_llhttp__internal__n_after_start_req_55,
+ s_n_llhttp__internal__n_after_start_req_53,
+ s_n_llhttp__internal__n_after_start_req_58,
+ s_n_llhttp__internal__n_after_start_req_59,
+ s_n_llhttp__internal__n_after_start_req_52,
+ s_n_llhttp__internal__n_after_start_req_61,
+ s_n_llhttp__internal__n_after_start_req_62,
+ s_n_llhttp__internal__n_after_start_req_60,
+ s_n_llhttp__internal__n_after_start_req_65,
+ s_n_llhttp__internal__n_after_start_req_67,
+ s_n_llhttp__internal__n_after_start_req_68,
+ s_n_llhttp__internal__n_after_start_req_66,
+ s_n_llhttp__internal__n_after_start_req_69,
+ s_n_llhttp__internal__n_after_start_req_64,
+ s_n_llhttp__internal__n_after_start_req_63,
+ s_n_llhttp__internal__n_after_start_req,
+ s_n_llhttp__internal__n_span_start_llhttp__on_method_1,
s_n_llhttp__internal__n_invoke_llhttp__on_status_complete,
s_n_llhttp__internal__n_res_line_almost_done,
s_n_llhttp__internal__n_res_status,
@@ -509,25 +532,43 @@ enum llparse_state_e {
s_n_llhttp__internal__n_res_status_start,
s_n_llhttp__internal__n_res_status_code_otherwise,
s_n_llhttp__internal__n_res_status_code,
- s_n_llhttp__internal__n_res_http_end,
+ s_n_llhttp__internal__n_res_after_version,
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1,
+ s_n_llhttp__internal__n_error_72,
+ s_n_llhttp__internal__n_error_79,
s_n_llhttp__internal__n_res_http_minor,
+ s_n_llhttp__internal__n_error_80,
s_n_llhttp__internal__n_res_http_dot,
+ s_n_llhttp__internal__n_error_81,
s_n_llhttp__internal__n_res_http_major,
+ s_n_llhttp__internal__n_span_start_llhttp__on_version_1,
s_n_llhttp__internal__n_start_res,
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete,
s_n_llhttp__internal__n_req_or_res_method_2,
+ s_n_llhttp__internal__n_invoke_update_type_1,
s_n_llhttp__internal__n_req_or_res_method_3,
s_n_llhttp__internal__n_req_or_res_method_1,
s_n_llhttp__internal__n_req_or_res_method,
+ s_n_llhttp__internal__n_span_start_llhttp__on_method,
s_n_llhttp__internal__n_start_req_or_res,
s_n_llhttp__internal__n_invoke_load_type,
+ s_n_llhttp__internal__n_invoke_update_finish,
s_n_llhttp__internal__n_start,
};
typedef enum llparse_state_e llparse_state_t;
+int llhttp__on_method(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__on_url(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__on_version(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__on_header_field(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
@@ -540,10 +581,29 @@ int llhttp__on_body(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__on_chunk_extension_name(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
+int llhttp__on_chunk_extension_value(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__on_status(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__internal__c_load_initial_message_completed(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return state->initial_message_completed;
+}
+
+int llhttp__on_reset(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__internal__c_update_finish(
llhttp__internal_t* state,
const unsigned char* p,
@@ -572,6 +632,10 @@ int llhttp__internal__c_store_method(
return 0;
}
+int llhttp__on_method_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__internal__c_is_equal_method(
llhttp__internal_t* state,
const unsigned char* p,
@@ -599,6 +663,13 @@ int llhttp__on_url_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__internal__c_test_lenient_flags(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return (state->lenient_flags & 1) == 1;
+}
+
int llhttp__internal__c_test_flags(
llhttp__internal_t* state,
const unsigned char* p,
@@ -625,6 +696,22 @@ int llhttp__after_message_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__internal__c_update_content_length(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ state->content_length = 0;
+ return 0;
+}
+
+int llhttp__internal__c_update_initial_message_completed(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ state->initial_message_completed = 1;
+ return 0;
+}
+
int llhttp__internal__c_update_finish_1(
llhttp__internal_t* state,
const unsigned char* p,
@@ -633,7 +720,7 @@ int llhttp__internal__c_update_finish_1(
return 0;
}
-int llhttp__internal__c_test_lenient_flags(
+int llhttp__internal__c_test_lenient_flags_1(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -647,7 +734,7 @@ int llhttp__internal__c_test_flags_1(
return (state->flags & 544) == 544;
}
-int llhttp__internal__c_test_lenient_flags_1(
+int llhttp__internal__c_test_lenient_flags_2(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -666,14 +753,6 @@ int llhttp__after_headers_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
-int llhttp__internal__c_update_content_length(
- llhttp__internal_t* state,
- const unsigned char* p,
- const unsigned char* endp) {
- state->content_length = 0;
- return 0;
-}
-
int llhttp__internal__c_mul_add_content_length(
llhttp__internal_t* state,
const unsigned char* p,
@@ -719,6 +798,14 @@ int llhttp__internal__c_or_flags(
return 0;
}
+int llhttp__on_chunk_extension_name_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
+int llhttp__on_chunk_extension_value_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__internal__c_update_finish_3(
llhttp__internal_t* state,
const unsigned char* p,
@@ -752,13 +839,6 @@ int llhttp__internal__c_store_header_state(
return 0;
}
-int llhttp__internal__c_test_lenient_flags_2(
- llhttp__internal_t* state,
- const unsigned char* p,
- const unsigned char* endp) {
- return (state->lenient_flags & 1) == 1;
-}
-
int llhttp__on_header_field_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
@@ -814,7 +894,7 @@ int llhttp__internal__c_or_flags_6(
return 0;
}
-int llhttp__internal__c_update_header_state_2(
+int llhttp__internal__c_update_header_state_3(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -822,7 +902,7 @@ int llhttp__internal__c_update_header_state_2(
return 0;
}
-int llhttp__internal__c_update_header_state_4(
+int llhttp__internal__c_update_header_state_1(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -830,7 +910,7 @@ int llhttp__internal__c_update_header_state_4(
return 0;
}
-int llhttp__internal__c_update_header_state_5(
+int llhttp__internal__c_update_header_state_6(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -838,7 +918,7 @@ int llhttp__internal__c_update_header_state_5(
return 0;
}
-int llhttp__internal__c_update_header_state_6(
+int llhttp__internal__c_update_header_state_7(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -894,7 +974,7 @@ int llhttp__internal__c_test_flags_3(
return (state->flags & 8) == 8;
}
-int llhttp__internal__c_test_lenient_flags_4(
+int llhttp__internal__c_test_lenient_flags_6(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -917,7 +997,7 @@ int llhttp__internal__c_and_flags(
return 0;
}
-int llhttp__internal__c_update_header_state_7(
+int llhttp__internal__c_update_header_state_8(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -958,6 +1038,31 @@ int llhttp__internal__c_store_http_minor(
return 0;
}
+int llhttp__internal__c_test_lenient_flags_8(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return (state->lenient_flags & 16) == 16;
+}
+
+int llhttp__on_version_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
+int llhttp__internal__c_load_http_major(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return state->http_major;
+}
+
+int llhttp__internal__c_load_http_minor(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return state->http_minor;
+}
+
int llhttp__internal__c_update_status_code(
llhttp__internal_t* state,
const unsigned char* p,
@@ -1045,7 +1150,7 @@ static llparse_state_t llhttp__internal__run(
}
default: {
p++;
- goto s_n_llhttp__internal__n_error_4;
+ goto s_n_llhttp__internal__n_error_7;
}
}
/* UNREACHABLE */;
@@ -1055,7 +1160,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: {
switch (llhttp__after_message_complete(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_update_finish_2;
+ goto s_n_llhttp__internal__n_invoke_update_content_length;
default:
goto s_n_llhttp__internal__n_invoke_update_finish_1;
}
@@ -1089,9 +1194,9 @@ static llparse_state_t llhttp__internal__run(
case 0:
goto s_n_llhttp__internal__n_invoke_is_equal_upgrade;
case 21:
- goto s_n_llhttp__internal__n_pause_5;
+ goto s_n_llhttp__internal__n_pause_11;
default:
- goto s_n_llhttp__internal__n_error_14;
+ goto s_n_llhttp__internal__n_error_28;
}
/* UNREACHABLE */;
abort();
@@ -1114,7 +1219,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_chunk_data_almost_done;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_8;
+ goto s_n_llhttp__internal__n_error_11;
}
}
/* UNREACHABLE */;
@@ -1171,24 +1276,107 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header;
}
default: {
- goto s_n_llhttp__internal__n_error_9;
+ goto s_n_llhttp__internal__n_error_12;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete: {
+ switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_5;
+ default:
+ goto s_n_llhttp__internal__n_error_15;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1: {
+ switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_extensions;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_6;
+ default:
+ goto s_n_llhttp__internal__n_error_16;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete: {
+ switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_7;
+ default:
+ goto s_n_llhttp__internal__n_error_18;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_quoted_value_done:
+ s_n_llhttp__internal__n_chunk_extension_quoted_value_done: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_extension_quoted_value_done;
+ }
+ switch (*p) {
+ case 13: {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ }
+ case ';': {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_extensions;
}
+ default: {
+ goto s_n_llhttp__internal__n_error_20;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1: {
+ switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_extension_quoted_value_done;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_8;
+ default:
+ goto s_n_llhttp__internal__n_error_19;
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_chunk_parameters:
- s_n_llhttp__internal__n_chunk_parameters: {
+ case s_n_llhttp__internal__n_error_21:
+ s_n_llhttp__internal__n_error_21: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions quoted value";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_quoted_value:
+ s_n_llhttp__internal__n_chunk_extension_quoted_value: {
static uint8_t lookup_table[] = {
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -1198,72 +1386,233 @@ static llparse_state_t llhttp__internal__run(
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
};
if (p == endp) {
- return s_n_llhttp__internal__n_chunk_parameters;
+ return s_n_llhttp__internal__n_chunk_extension_quoted_value;
}
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_chunk_parameters;
+ goto s_n_llhttp__internal__n_chunk_extension_quoted_value;
}
case 2: {
p++;
- goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_1;
}
default: {
- goto s_n_llhttp__internal__n_error_10;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_2;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_chunk_size_otherwise:
- s_n_llhttp__internal__n_chunk_size_otherwise: {
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2: {
+ switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_size_otherwise;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_9;
+ default:
+ goto s_n_llhttp__internal__n_error_22;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_23:
+ s_n_llhttp__internal__n_error_23: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions value";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_value:
+ s_n_llhttp__internal__n_chunk_extension_value: {
+ static uint8_t lookup_table[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2, 3, 2, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 2, 0,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 0, 0, 0, 0,
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 2, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ };
if (p == endp) {
- return s_n_llhttp__internal__n_chunk_size_otherwise;
+ return s_n_llhttp__internal__n_chunk_extension_value;
}
- switch (*p) {
- case 13: {
- p++;
- goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ switch (lookup_table[(uint8_t) *p]) {
+ case 1: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value;
}
- case ' ': {
+ case 2: {
p++;
- goto s_n_llhttp__internal__n_chunk_parameters;
+ goto s_n_llhttp__internal__n_chunk_extension_value;
}
- case ';': {
+ case 3: {
p++;
- goto s_n_llhttp__internal__n_chunk_parameters;
+ goto s_n_llhttp__internal__n_chunk_extension_quoted_value;
+ }
+ case 4: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_3;
}
default: {
- goto s_n_llhttp__internal__n_error_11;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_4;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_chunk_size:
- s_n_llhttp__internal__n_chunk_size: {
+ case s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value:
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value: {
if (p == endp) {
- return s_n_llhttp__internal__n_chunk_size;
+ return s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value;
}
- switch (*p) {
- case '0': {
- p++;
- match = 0;
- goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_chunk_extension_value;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_24:
+ s_n_llhttp__internal__n_error_24: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions name";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_name:
+ s_n_llhttp__internal__n_chunk_extension_name: {
+ static uint8_t lookup_table[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2, 0, 2, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 2, 0,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 3, 0, 4, 0, 0,
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 2, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ };
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_extension_name;
+ }
+ switch (lookup_table[(uint8_t) *p]) {
+ case 1: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name;
}
- case '1': {
+ case 2: {
p++;
- match = 1;
- goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
+ goto s_n_llhttp__internal__n_chunk_extension_name;
}
- case '2': {
- p++;
- match = 2;
- goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
+ case 3: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_1;
}
- case '3': {
- p++;
+ case 4: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_2;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_3;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name:
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_chunk_extension_name;
+ goto s_n_llhttp__internal__n_chunk_extension_name;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extensions:
+ s_n_llhttp__internal__n_chunk_extensions: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_extensions;
+ }
+ switch (*p) {
+ case 13: {
+ p++;
+ goto s_n_llhttp__internal__n_error_13;
+ }
+ case ' ': {
+ p++;
+ goto s_n_llhttp__internal__n_error_14;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_size_otherwise:
+ s_n_llhttp__internal__n_chunk_size_otherwise: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_size_otherwise;
+ }
+ switch (*p) {
+ case 13: {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ }
+ case ';': {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_extensions;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_error_25;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_size:
+ s_n_llhttp__internal__n_chunk_size: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_size;
+ }
+ switch (*p) {
+ case '0': {
+ p++;
+ match = 0;
+ goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
+ }
+ case '1': {
+ p++;
+ match = 1;
+ goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
+ }
+ case '2': {
+ p++;
+ match = 2;
+ goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
+ }
+ case '3': {
+ p++;
match = 3;
goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
}
@@ -1481,14 +1830,14 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
}
default: {
- goto s_n_llhttp__internal__n_error_13;
+ goto s_n_llhttp__internal__n_error_27;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_invoke_update_content_length:
- s_n_llhttp__internal__n_invoke_update_content_length: {
+ case s_n_llhttp__internal__n_invoke_update_content_length_1:
+ s_n_llhttp__internal__n_invoke_update_content_length_1: {
switch (llhttp__internal__c_update_content_length(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_chunk_size_digit;
@@ -1552,13 +1901,13 @@ static llparse_state_t llhttp__internal__run(
case 1:
goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1;
case 2:
- goto s_n_llhttp__internal__n_invoke_update_content_length;
+ goto s_n_llhttp__internal__n_invoke_update_content_length_1;
case 3:
goto s_n_llhttp__internal__n_span_start_llhttp__on_body_1;
case 4:
goto s_n_llhttp__internal__n_invoke_update_finish_3;
case 5:
- goto s_n_llhttp__internal__n_error_15;
+ goto s_n_llhttp__internal__n_error_29;
default:
goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete;
}
@@ -1576,7 +1925,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_test_flags;
}
default: {
- goto s_n_llhttp__internal__n_error_18;
+ goto s_n_llhttp__internal__n_error_32;
}
}
/* UNREACHABLE */;
@@ -1599,8 +1948,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_19:
- s_n_llhttp__internal__n_error_19: {
+ case s_n_llhttp__internal__n_error_33:
+ s_n_llhttp__internal__n_error_33: {
state->error = 0xa;
state->reason = "Invalid header field char";
state->error_pos = (const char*) p;
@@ -1612,8 +1961,12 @@ static llparse_state_t llhttp__internal__run(
case s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete:
s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete: {
switch (llhttp__on_header_value_complete(state, p, endp)) {
- default:
+ case 0:
goto s_n_llhttp__internal__n_header_field_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_14;
+ default:
+ goto s_n_llhttp__internal__n_error_36;
}
/* UNREACHABLE */;
abort();
@@ -1661,7 +2014,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_value_discard_lws;
}
default: {
- goto s_n_llhttp__internal__n_error_21;
+ goto s_n_llhttp__internal__n_error_38;
}
}
/* UNREACHABLE */;
@@ -1674,13 +2027,13 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case 9: {
- goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_3;
}
case ' ': {
- goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_3;
}
default: {
- goto s_n_llhttp__internal__n_invoke_load_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_4;
}
}
/* UNREACHABLE */;
@@ -1697,7 +2050,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_value_lws;
}
default: {
- goto s_n_llhttp__internal__n_error_22;
+ goto s_n_llhttp__internal__n_error_39;
}
}
/* UNREACHABLE */;
@@ -1723,32 +2076,16 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_23:
- s_n_llhttp__internal__n_error_23: {
- state->error = 0x19;
- state->reason = "Missing expected CR after header value";
+ case s_n_llhttp__internal__n_error_40:
+ s_n_llhttp__internal__n_error_40: {
+ state->error = 0xa;
+ state->reason = "Invalid header value char";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_header_value_lenient_failed:
- s_n_llhttp__internal__n_header_value_lenient_failed: {
- if (p == endp) {
- return s_n_llhttp__internal__n_header_value_lenient_failed;
- }
- switch (*p) {
- case 10: {
- goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2;
- }
- default: {
- goto s_n_llhttp__internal__n_error_24;
- }
- }
- /* UNREACHABLE */;
- abort();
- }
case s_n_llhttp__internal__n_header_value_otherwise:
s_n_llhttp__internal__n_header_value_otherwise: {
if (p == endp) {
@@ -1759,7 +2096,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_1;
}
default: {
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_3;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_5;
}
}
/* UNREACHABLE */;
@@ -1822,10 +2159,10 @@ static llparse_state_t llhttp__internal__run(
}
case ',': {
p++;
- goto s_n_llhttp__internal__n_invoke_load_header_state_4;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_5;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_4;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_5;
}
}
/* UNREACHABLE */;
@@ -1843,7 +2180,7 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_header_state_2;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_3;
}
case kMatchPause: {
return s_n_llhttp__internal__n_header_value_connection_1;
@@ -1867,7 +2204,7 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_header_state_5;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_6;
}
case kMatchPause: {
return s_n_llhttp__internal__n_header_value_connection_2;
@@ -1891,7 +2228,7 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_header_state_6;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_7;
}
case kMatchPause: {
return s_n_llhttp__internal__n_header_value_connection_3;
@@ -1936,8 +2273,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_26:
- s_n_llhttp__internal__n_error_26: {
+ case s_n_llhttp__internal__n_error_42:
+ s_n_llhttp__internal__n_error_42: {
state->error = 0xb;
state->reason = "Content-Length overflow";
state->error_pos = (const char*) p;
@@ -1946,8 +2283,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_27:
- s_n_llhttp__internal__n_error_27: {
+ case s_n_llhttp__internal__n_error_43:
+ s_n_llhttp__internal__n_error_43: {
state->error = 0xb;
state->reason = "Invalid character in Content-Length";
state->error_pos = (const char*) p;
@@ -2042,8 +2379,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_29:
- s_n_llhttp__internal__n_error_29: {
+ case s_n_llhttp__internal__n_error_45:
+ s_n_llhttp__internal__n_error_45: {
state->error = 0xf;
state->reason = "Invalid `Transfer-Encoding` header value";
state->error_pos = (const char*) p;
@@ -2052,8 +2389,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_28:
- s_n_llhttp__internal__n_error_28: {
+ case s_n_llhttp__internal__n_error_44:
+ s_n_llhttp__internal__n_error_44: {
state->error = 0xf;
state->reason = "Invalid `Transfer-Encoding` header value";
state->error_pos = (const char*) p;
@@ -2175,7 +2512,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_value_te_token_ows;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_8;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_9;
}
}
/* UNREACHABLE */;
@@ -2188,10 +2525,10 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case 10: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_7;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_8;
}
case 13: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_7;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_8;
}
case ' ': {
p++;
@@ -2254,7 +2591,7 @@ static llparse_state_t llhttp__internal__run(
}
case 10: {
p++;
- goto s_n_llhttp__internal__n_header_value_discard_lws;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_4;
}
case 13: {
p++;
@@ -2274,8 +2611,12 @@ static llparse_state_t llhttp__internal__run(
case s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete:
s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete: {
switch (llhttp__on_header_field_complete(state, p, endp)) {
- default:
+ case 0:
goto s_n_llhttp__internal__n_header_value_discard_ws;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_15;
+ default:
+ goto s_n_llhttp__internal__n_error_34;
}
/* UNREACHABLE */;
abort();
@@ -2290,7 +2631,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_2;
}
default: {
- goto s_n_llhttp__internal__n_error_30;
+ goto s_n_llhttp__internal__n_error_46;
}
}
/* UNREACHABLE */;
@@ -2374,13 +2715,13 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case ' ': {
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_2;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_3;
}
case ':': {
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_9;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_10;
}
}
/* UNREACHABLE */;
@@ -2405,7 +2746,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2430,7 +2771,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_4;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2451,7 +2792,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_field_4;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2475,7 +2816,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_1;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2500,7 +2841,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_5;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2525,7 +2866,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_6;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2550,7 +2891,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_7;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2579,7 +2920,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_field_7;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -2616,6 +2957,23 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_headers_start:
+ s_n_llhttp__internal__n_headers_start: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_headers_start;
+ }
+ switch (*p) {
+ case ' ': {
+ p++;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_header_field_start;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_url_to_http_09:
s_n_llhttp__internal__n_url_to_http_09: {
if (p == endp) {
@@ -2624,11 +2982,11 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
default: {
goto s_n_llhttp__internal__n_invoke_update_http_major;
@@ -2645,11 +3003,11 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
default: {
p++;
@@ -2670,7 +3028,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_to_http_09;
}
default: {
- goto s_n_llhttp__internal__n_error_31;
+ goto s_n_llhttp__internal__n_error_47;
}
}
/* UNREACHABLE */;
@@ -2684,18 +3042,18 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 13: {
p++;
goto s_n_llhttp__internal__n_url_skip_lf_to_http09_1;
}
default: {
- goto s_n_llhttp__internal__n_error_31;
+ goto s_n_llhttp__internal__n_error_47;
}
}
/* UNREACHABLE */;
@@ -2713,13 +3071,13 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_error_34;
+ goto s_n_llhttp__internal__n_error_53;
}
case kMatchPause: {
return s_n_llhttp__internal__n_req_pri_upgrade;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_35;
+ goto s_n_llhttp__internal__n_error_54;
}
}
/* UNREACHABLE */;
@@ -2733,10 +3091,10 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 10: {
p++;
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_headers_start;
}
default: {
- goto s_n_llhttp__internal__n_error_33;
+ goto s_n_llhttp__internal__n_error_52;
}
}
/* UNREACHABLE */;
@@ -2750,19 +3108,63 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 10: {
p++;
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_headers_start;
}
case 13: {
p++;
goto s_n_llhttp__internal__n_req_http_complete_1;
}
default: {
- goto s_n_llhttp__internal__n_error_33;
+ goto s_n_llhttp__internal__n_error_52;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_load_method_1:
+ s_n_llhttp__internal__n_invoke_load_method_1: {
+ switch (llhttp__internal__c_load_method(state, p, endp)) {
+ case 34:
+ goto s_n_llhttp__internal__n_req_pri_upgrade;
+ default:
+ goto s_n_llhttp__internal__n_req_http_complete;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_version_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete: {
+ switch (llhttp__on_version_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_load_method_1;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_17;
+ default:
+ goto s_n_llhttp__internal__n_error_51;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_50:
+ s_n_llhttp__internal__n_error_50: {
+ state->error = 0x9;
+ state->reason = "Invalid HTTP version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_55:
+ s_n_llhttp__internal__n_error_55: {
+ state->error = 0x9;
+ state->reason = "Invalid minor version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_minor:
s_n_llhttp__internal__n_req_http_minor: {
if (p == endp) {
@@ -2820,12 +3222,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_minor;
}
default: {
- goto s_n_llhttp__internal__n_error_36;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_2;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_56:
+ s_n_llhttp__internal__n_error_56: {
+ state->error = 0x9;
+ state->reason = "Expected dot";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_dot:
s_n_llhttp__internal__n_req_http_dot: {
if (p == endp) {
@@ -2837,12 +3249,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_http_minor;
}
default: {
- goto s_n_llhttp__internal__n_error_37;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_3;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_57:
+ s_n_llhttp__internal__n_error_57: {
+ state->error = 0x9;
+ state->reason = "Invalid major version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_major:
s_n_llhttp__internal__n_req_http_major: {
if (p == endp) {
@@ -2900,12 +3322,23 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_major;
}
default: {
- goto s_n_llhttp__internal__n_error_38;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_4;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_version:
+ s_n_llhttp__internal__n_span_start_llhttp__on_version: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_version;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_version;
+ goto s_n_llhttp__internal__n_req_http_major;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_start_1:
s_n_llhttp__internal__n_req_http_start_1: {
llparse_match_t match_seq;
@@ -2924,7 +3357,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_http_start_1;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_41;
+ goto s_n_llhttp__internal__n_error_60;
}
}
/* UNREACHABLE */;
@@ -2948,7 +3381,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_http_start_2;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_41;
+ goto s_n_llhttp__internal__n_error_60;
}
}
/* UNREACHABLE */;
@@ -2972,7 +3405,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_http_start_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_41;
+ goto s_n_llhttp__internal__n_error_60;
}
}
/* UNREACHABLE */;
@@ -3001,7 +3434,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_http_start_3;
}
default: {
- goto s_n_llhttp__internal__n_error_41;
+ goto s_n_llhttp__internal__n_error_60;
}
}
/* UNREACHABLE */;
@@ -3015,11 +3448,11 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
default: {
goto s_n_llhttp__internal__n_invoke_llhttp__on_url_complete_1;
@@ -3036,11 +3469,11 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
default: {
p++;
@@ -3076,7 +3509,7 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 2: {
goto s_n_llhttp__internal__n_span_end_llhttp__on_url_6;
@@ -3092,7 +3525,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_fragment;
}
default: {
- goto s_n_llhttp__internal__n_error_42;
+ goto s_n_llhttp__internal__n_error_61;
}
}
/* UNREACHABLE */;
@@ -3134,7 +3567,7 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 2: {
goto s_n_llhttp__internal__n_span_end_llhttp__on_url_9;
@@ -3153,7 +3586,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_span_end_stub_query_3;
}
default: {
- goto s_n_llhttp__internal__n_error_43;
+ goto s_n_llhttp__internal__n_error_62;
}
}
/* UNREACHABLE */;
@@ -3167,14 +3600,14 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 10: {
goto s_n_llhttp__internal__n_span_end_llhttp__on_url_3;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 13: {
goto s_n_llhttp__internal__n_span_end_llhttp__on_url_4;
@@ -3191,7 +3624,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_query;
}
default: {
- goto s_n_llhttp__internal__n_error_44;
+ goto s_n_llhttp__internal__n_error_63;
}
}
/* UNREACHABLE */;
@@ -3223,7 +3656,7 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 2: {
p++;
@@ -3292,7 +3725,7 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 2: {
goto s_n_llhttp__internal__n_span_end_llhttp__on_url_12;
@@ -3316,10 +3749,10 @@ static llparse_state_t llhttp__internal__run(
}
case 8: {
p++;
- goto s_n_llhttp__internal__n_error_45;
+ goto s_n_llhttp__internal__n_error_64;
}
default: {
- goto s_n_llhttp__internal__n_error_46;
+ goto s_n_llhttp__internal__n_error_65;
}
}
/* UNREACHABLE */;
@@ -3351,7 +3784,7 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 2: {
goto s_n_llhttp__internal__n_span_end_llhttp__on_url;
@@ -3378,7 +3811,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_server_with_at;
}
default: {
- goto s_n_llhttp__internal__n_error_47;
+ goto s_n_llhttp__internal__n_error_66;
}
}
/* UNREACHABLE */;
@@ -3395,7 +3828,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_server;
}
default: {
- goto s_n_llhttp__internal__n_error_49;
+ goto s_n_llhttp__internal__n_error_68;
}
}
/* UNREACHABLE */;
@@ -3409,30 +3842,30 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 10: {
p++;
- goto s_n_llhttp__internal__n_error_48;
+ goto s_n_llhttp__internal__n_error_67;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 13: {
p++;
- goto s_n_llhttp__internal__n_error_48;
+ goto s_n_llhttp__internal__n_error_67;
}
case ' ': {
p++;
- goto s_n_llhttp__internal__n_error_48;
+ goto s_n_llhttp__internal__n_error_67;
}
case '/': {
p++;
goto s_n_llhttp__internal__n_url_schema_delim_1;
}
default: {
- goto s_n_llhttp__internal__n_error_49;
+ goto s_n_llhttp__internal__n_error_68;
}
}
/* UNREACHABLE */;
@@ -3474,11 +3907,11 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 2: {
p++;
- goto s_n_llhttp__internal__n_error_48;
+ goto s_n_llhttp__internal__n_error_67;
}
case 3: {
goto s_n_llhttp__internal__n_span_end_stub_schema;
@@ -3488,7 +3921,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_schema;
}
default: {
- goto s_n_llhttp__internal__n_error_50;
+ goto s_n_llhttp__internal__n_error_69;
}
}
/* UNREACHABLE */;
@@ -3520,11 +3953,11 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 2: {
p++;
- goto s_n_llhttp__internal__n_error_48;
+ goto s_n_llhttp__internal__n_error_67;
}
case 3: {
goto s_n_llhttp__internal__n_span_start_stub_path_2;
@@ -3533,7 +3966,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_schema;
}
default: {
- goto s_n_llhttp__internal__n_error_51;
+ goto s_n_llhttp__internal__n_error_70;
}
}
/* UNREACHABLE */;
@@ -3558,11 +3991,11 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
default: {
goto s_n_llhttp__internal__n_span_start_llhttp__on_url_1;
@@ -3590,11 +4023,11 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 9: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
case 12: {
p++;
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_2;
}
default: {
goto s_n_llhttp__internal__n_span_start_llhttp__on_url;
@@ -3631,16 +4064,29 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_spaces_before_url;
}
default: {
- goto s_n_llhttp__internal__n_error_52;
+ goto s_n_llhttp__internal__n_error_71;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_2:
- s_n_llhttp__internal__n_start_req_2: {
+ case s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1: {
+ switch (llhttp__on_method_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_req_first_space_before_url;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_22;
+ default:
+ goto s_n_llhttp__internal__n_error_83;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_after_start_req_2:
+ s_n_llhttp__internal__n_after_start_req_2: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_2;
+ return s_n_llhttp__internal__n_after_start_req_2;
}
switch (*p) {
case 'L': {
@@ -3649,18 +4095,18 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_3:
- s_n_llhttp__internal__n_start_req_3: {
+ case s_n_llhttp__internal__n_after_start_req_3:
+ s_n_llhttp__internal__n_after_start_req_3: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_3;
+ return s_n_llhttp__internal__n_after_start_req_3;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob18, 6);
p = match_seq.current;
@@ -3671,42 +4117,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_3;
+ return s_n_llhttp__internal__n_after_start_req_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_1:
- s_n_llhttp__internal__n_start_req_1: {
+ case s_n_llhttp__internal__n_after_start_req_1:
+ s_n_llhttp__internal__n_after_start_req_1: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_1;
+ return s_n_llhttp__internal__n_after_start_req_1;
}
switch (*p) {
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_2;
+ goto s_n_llhttp__internal__n_after_start_req_2;
}
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_3;
+ goto s_n_llhttp__internal__n_after_start_req_3;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_4:
- s_n_llhttp__internal__n_start_req_4: {
+ case s_n_llhttp__internal__n_after_start_req_4:
+ s_n_llhttp__internal__n_after_start_req_4: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_4;
+ return s_n_llhttp__internal__n_after_start_req_4;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob19, 3);
p = match_seq.current;
@@ -3717,21 +4163,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_4;
+ return s_n_llhttp__internal__n_after_start_req_4;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_6:
- s_n_llhttp__internal__n_start_req_6: {
+ case s_n_llhttp__internal__n_after_start_req_6:
+ s_n_llhttp__internal__n_after_start_req_6: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_6;
+ return s_n_llhttp__internal__n_after_start_req_6;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob20, 6);
p = match_seq.current;
@@ -3742,21 +4188,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_6;
+ return s_n_llhttp__internal__n_after_start_req_6;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_8:
- s_n_llhttp__internal__n_start_req_8: {
+ case s_n_llhttp__internal__n_after_start_req_8:
+ s_n_llhttp__internal__n_after_start_req_8: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_8;
+ return s_n_llhttp__internal__n_after_start_req_8;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob21, 4);
p = match_seq.current;
@@ -3767,19 +4213,19 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_8;
+ return s_n_llhttp__internal__n_after_start_req_8;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_9:
- s_n_llhttp__internal__n_start_req_9: {
+ case s_n_llhttp__internal__n_after_start_req_9:
+ s_n_llhttp__internal__n_after_start_req_9: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_9;
+ return s_n_llhttp__internal__n_after_start_req_9;
}
switch (*p) {
case 'Y': {
@@ -3788,60 +4234,60 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_7:
- s_n_llhttp__internal__n_start_req_7: {
+ case s_n_llhttp__internal__n_after_start_req_7:
+ s_n_llhttp__internal__n_after_start_req_7: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_7;
+ return s_n_llhttp__internal__n_after_start_req_7;
}
switch (*p) {
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_8;
+ goto s_n_llhttp__internal__n_after_start_req_8;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_9;
+ goto s_n_llhttp__internal__n_after_start_req_9;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_5:
- s_n_llhttp__internal__n_start_req_5: {
+ case s_n_llhttp__internal__n_after_start_req_5:
+ s_n_llhttp__internal__n_after_start_req_5: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_5;
+ return s_n_llhttp__internal__n_after_start_req_5;
}
switch (*p) {
case 'H': {
p++;
- goto s_n_llhttp__internal__n_start_req_6;
+ goto s_n_llhttp__internal__n_after_start_req_6;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_7;
+ goto s_n_llhttp__internal__n_after_start_req_7;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_12:
- s_n_llhttp__internal__n_start_req_12: {
+ case s_n_llhttp__internal__n_after_start_req_12:
+ s_n_llhttp__internal__n_after_start_req_12: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_12;
+ return s_n_llhttp__internal__n_after_start_req_12;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob22, 3);
p = match_seq.current;
@@ -3852,21 +4298,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_12;
+ return s_n_llhttp__internal__n_after_start_req_12;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_13:
- s_n_llhttp__internal__n_start_req_13: {
+ case s_n_llhttp__internal__n_after_start_req_13:
+ s_n_llhttp__internal__n_after_start_req_13: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_13;
+ return s_n_llhttp__internal__n_after_start_req_13;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob23, 5);
p = match_seq.current;
@@ -3877,59 +4323,59 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_13;
+ return s_n_llhttp__internal__n_after_start_req_13;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_11:
- s_n_llhttp__internal__n_start_req_11: {
+ case s_n_llhttp__internal__n_after_start_req_11:
+ s_n_llhttp__internal__n_after_start_req_11: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_11;
+ return s_n_llhttp__internal__n_after_start_req_11;
}
switch (*p) {
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_12;
+ goto s_n_llhttp__internal__n_after_start_req_12;
}
case 'S': {
p++;
- goto s_n_llhttp__internal__n_start_req_13;
+ goto s_n_llhttp__internal__n_after_start_req_13;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_10:
- s_n_llhttp__internal__n_start_req_10: {
+ case s_n_llhttp__internal__n_after_start_req_10:
+ s_n_llhttp__internal__n_after_start_req_10: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_10;
+ return s_n_llhttp__internal__n_after_start_req_10;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_11;
+ goto s_n_llhttp__internal__n_after_start_req_11;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_14:
- s_n_llhttp__internal__n_start_req_14: {
+ case s_n_llhttp__internal__n_after_start_req_14:
+ s_n_llhttp__internal__n_after_start_req_14: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_14;
+ return s_n_llhttp__internal__n_after_start_req_14;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob24, 4);
p = match_seq.current;
@@ -3940,21 +4386,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_14;
+ return s_n_llhttp__internal__n_after_start_req_14;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_17:
- s_n_llhttp__internal__n_start_req_17: {
+ case s_n_llhttp__internal__n_after_start_req_17:
+ s_n_llhttp__internal__n_after_start_req_17: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_17;
+ return s_n_llhttp__internal__n_after_start_req_17;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob26, 9);
p = match_seq.current;
@@ -3965,24 +4411,24 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_17;
+ return s_n_llhttp__internal__n_after_start_req_17;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_16:
- s_n_llhttp__internal__n_start_req_16: {
+ case s_n_llhttp__internal__n_after_start_req_16:
+ s_n_llhttp__internal__n_after_start_req_16: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_16;
+ return s_n_llhttp__internal__n_after_start_req_16;
}
switch (*p) {
case '_': {
p++;
- goto s_n_llhttp__internal__n_start_req_17;
+ goto s_n_llhttp__internal__n_after_start_req_17;
}
default: {
match = 1;
@@ -3992,36 +4438,36 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_15:
- s_n_llhttp__internal__n_start_req_15: {
+ case s_n_llhttp__internal__n_after_start_req_15:
+ s_n_llhttp__internal__n_after_start_req_15: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_15;
+ return s_n_llhttp__internal__n_after_start_req_15;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob25, 2);
p = match_seq.current;
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_start_req_16;
+ goto s_n_llhttp__internal__n_after_start_req_16;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_15;
+ return s_n_llhttp__internal__n_after_start_req_15;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_18:
- s_n_llhttp__internal__n_start_req_18: {
+ case s_n_llhttp__internal__n_after_start_req_18:
+ s_n_llhttp__internal__n_after_start_req_18: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_18;
+ return s_n_llhttp__internal__n_after_start_req_18;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob27, 3);
p = match_seq.current;
@@ -4032,21 +4478,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_18;
+ return s_n_llhttp__internal__n_after_start_req_18;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_20:
- s_n_llhttp__internal__n_start_req_20: {
+ case s_n_llhttp__internal__n_after_start_req_20:
+ s_n_llhttp__internal__n_after_start_req_20: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_20;
+ return s_n_llhttp__internal__n_after_start_req_20;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob28, 2);
p = match_seq.current;
@@ -4057,21 +4503,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_20;
+ return s_n_llhttp__internal__n_after_start_req_20;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_21:
- s_n_llhttp__internal__n_start_req_21: {
+ case s_n_llhttp__internal__n_after_start_req_21:
+ s_n_llhttp__internal__n_after_start_req_21: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_21;
+ return s_n_llhttp__internal__n_after_start_req_21;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob29, 2);
p = match_seq.current;
@@ -4082,42 +4528,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_21;
+ return s_n_llhttp__internal__n_after_start_req_21;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_19:
- s_n_llhttp__internal__n_start_req_19: {
+ case s_n_llhttp__internal__n_after_start_req_19:
+ s_n_llhttp__internal__n_after_start_req_19: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_19;
+ return s_n_llhttp__internal__n_after_start_req_19;
}
switch (*p) {
case 'I': {
p++;
- goto s_n_llhttp__internal__n_start_req_20;
+ goto s_n_llhttp__internal__n_after_start_req_20;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_21;
+ goto s_n_llhttp__internal__n_after_start_req_21;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_23:
- s_n_llhttp__internal__n_start_req_23: {
+ case s_n_llhttp__internal__n_after_start_req_23:
+ s_n_llhttp__internal__n_after_start_req_23: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_23;
+ return s_n_llhttp__internal__n_after_start_req_23;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob30, 6);
p = match_seq.current;
@@ -4128,21 +4574,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_23;
+ return s_n_llhttp__internal__n_after_start_req_23;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_24:
- s_n_llhttp__internal__n_start_req_24: {
+ case s_n_llhttp__internal__n_after_start_req_24:
+ s_n_llhttp__internal__n_after_start_req_24: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_24;
+ return s_n_llhttp__internal__n_after_start_req_24;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob31, 3);
p = match_seq.current;
@@ -4153,21 +4599,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_24;
+ return s_n_llhttp__internal__n_after_start_req_24;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_26:
- s_n_llhttp__internal__n_start_req_26: {
+ case s_n_llhttp__internal__n_after_start_req_26:
+ s_n_llhttp__internal__n_after_start_req_26: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_26;
+ return s_n_llhttp__internal__n_after_start_req_26;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob32, 7);
p = match_seq.current;
@@ -4178,21 +4624,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_26;
+ return s_n_llhttp__internal__n_after_start_req_26;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_28:
- s_n_llhttp__internal__n_start_req_28: {
+ case s_n_llhttp__internal__n_after_start_req_28:
+ s_n_llhttp__internal__n_after_start_req_28: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_28;
+ return s_n_llhttp__internal__n_after_start_req_28;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob33, 6);
p = match_seq.current;
@@ -4203,19 +4649,19 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_28;
+ return s_n_llhttp__internal__n_after_start_req_28;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_29:
- s_n_llhttp__internal__n_start_req_29: {
+ case s_n_llhttp__internal__n_after_start_req_29:
+ s_n_llhttp__internal__n_after_start_req_29: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_29;
+ return s_n_llhttp__internal__n_after_start_req_29;
}
switch (*p) {
case 'L': {
@@ -4224,60 +4670,60 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_27:
- s_n_llhttp__internal__n_start_req_27: {
+ case s_n_llhttp__internal__n_after_start_req_27:
+ s_n_llhttp__internal__n_after_start_req_27: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_27;
+ return s_n_llhttp__internal__n_after_start_req_27;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_28;
+ goto s_n_llhttp__internal__n_after_start_req_28;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_29;
+ goto s_n_llhttp__internal__n_after_start_req_29;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_25:
- s_n_llhttp__internal__n_start_req_25: {
+ case s_n_llhttp__internal__n_after_start_req_25:
+ s_n_llhttp__internal__n_after_start_req_25: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_25;
+ return s_n_llhttp__internal__n_after_start_req_25;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_26;
+ goto s_n_llhttp__internal__n_after_start_req_26;
}
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_27;
+ goto s_n_llhttp__internal__n_after_start_req_27;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_30:
- s_n_llhttp__internal__n_start_req_30: {
+ case s_n_llhttp__internal__n_after_start_req_30:
+ s_n_llhttp__internal__n_after_start_req_30: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_30;
+ return s_n_llhttp__internal__n_after_start_req_30;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob34, 2);
p = match_seq.current;
@@ -4288,50 +4734,50 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_30;
+ return s_n_llhttp__internal__n_after_start_req_30;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_22:
- s_n_llhttp__internal__n_start_req_22: {
+ case s_n_llhttp__internal__n_after_start_req_22:
+ s_n_llhttp__internal__n_after_start_req_22: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_22;
+ return s_n_llhttp__internal__n_after_start_req_22;
}
switch (*p) {
case '-': {
p++;
- goto s_n_llhttp__internal__n_start_req_23;
+ goto s_n_llhttp__internal__n_after_start_req_23;
}
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_24;
+ goto s_n_llhttp__internal__n_after_start_req_24;
}
case 'K': {
p++;
- goto s_n_llhttp__internal__n_start_req_25;
+ goto s_n_llhttp__internal__n_after_start_req_25;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_30;
+ goto s_n_llhttp__internal__n_after_start_req_30;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_31:
- s_n_llhttp__internal__n_start_req_31: {
+ case s_n_llhttp__internal__n_after_start_req_31:
+ s_n_llhttp__internal__n_after_start_req_31: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_31;
+ return s_n_llhttp__internal__n_after_start_req_31;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob35, 5);
p = match_seq.current;
@@ -4342,21 +4788,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_31;
+ return s_n_llhttp__internal__n_after_start_req_31;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_32:
- s_n_llhttp__internal__n_start_req_32: {
+ case s_n_llhttp__internal__n_after_start_req_32:
+ s_n_llhttp__internal__n_after_start_req_32: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_32;
+ return s_n_llhttp__internal__n_after_start_req_32;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob36, 6);
p = match_seq.current;
@@ -4367,21 +4813,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_32;
+ return s_n_llhttp__internal__n_after_start_req_32;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_35:
- s_n_llhttp__internal__n_start_req_35: {
+ case s_n_llhttp__internal__n_after_start_req_35:
+ s_n_llhttp__internal__n_after_start_req_35: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_35;
+ return s_n_llhttp__internal__n_after_start_req_35;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob37, 2);
p = match_seq.current;
@@ -4392,21 +4838,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_35;
+ return s_n_llhttp__internal__n_after_start_req_35;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_36:
- s_n_llhttp__internal__n_start_req_36: {
+ case s_n_llhttp__internal__n_after_start_req_36:
+ s_n_llhttp__internal__n_after_start_req_36: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_36;
+ return s_n_llhttp__internal__n_after_start_req_36;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob38, 2);
p = match_seq.current;
@@ -4417,42 +4863,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_36;
+ return s_n_llhttp__internal__n_after_start_req_36;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_34:
- s_n_llhttp__internal__n_start_req_34: {
+ case s_n_llhttp__internal__n_after_start_req_34:
+ s_n_llhttp__internal__n_after_start_req_34: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_34;
+ return s_n_llhttp__internal__n_after_start_req_34;
}
switch (*p) {
case 'T': {
p++;
- goto s_n_llhttp__internal__n_start_req_35;
+ goto s_n_llhttp__internal__n_after_start_req_35;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_36;
+ goto s_n_llhttp__internal__n_after_start_req_36;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_37:
- s_n_llhttp__internal__n_start_req_37: {
+ case s_n_llhttp__internal__n_after_start_req_37:
+ s_n_llhttp__internal__n_after_start_req_37: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_37;
+ return s_n_llhttp__internal__n_after_start_req_37;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob39, 2);
p = match_seq.current;
@@ -4463,21 +4909,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_37;
+ return s_n_llhttp__internal__n_after_start_req_37;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_38:
- s_n_llhttp__internal__n_start_req_38: {
+ case s_n_llhttp__internal__n_after_start_req_38:
+ s_n_llhttp__internal__n_after_start_req_38: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_38;
+ return s_n_llhttp__internal__n_after_start_req_38;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob40, 2);
p = match_seq.current;
@@ -4488,21 +4934,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_38;
+ return s_n_llhttp__internal__n_after_start_req_38;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_42:
- s_n_llhttp__internal__n_start_req_42: {
+ case s_n_llhttp__internal__n_after_start_req_42:
+ s_n_llhttp__internal__n_after_start_req_42: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_42;
+ return s_n_llhttp__internal__n_after_start_req_42;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob41, 3);
p = match_seq.current;
@@ -4513,21 +4959,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_42;
+ return s_n_llhttp__internal__n_after_start_req_42;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_43:
- s_n_llhttp__internal__n_start_req_43: {
+ case s_n_llhttp__internal__n_after_start_req_43:
+ s_n_llhttp__internal__n_after_start_req_43: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_43;
+ return s_n_llhttp__internal__n_after_start_req_43;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob42, 4);
p = match_seq.current;
@@ -4538,57 +4984,57 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_43;
+ return s_n_llhttp__internal__n_after_start_req_43;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_41:
- s_n_llhttp__internal__n_start_req_41: {
+ case s_n_llhttp__internal__n_after_start_req_41:
+ s_n_llhttp__internal__n_after_start_req_41: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_41;
+ return s_n_llhttp__internal__n_after_start_req_41;
}
switch (*p) {
case 'F': {
p++;
- goto s_n_llhttp__internal__n_start_req_42;
+ goto s_n_llhttp__internal__n_after_start_req_42;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_43;
+ goto s_n_llhttp__internal__n_after_start_req_43;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_40:
- s_n_llhttp__internal__n_start_req_40: {
+ case s_n_llhttp__internal__n_after_start_req_40:
+ s_n_llhttp__internal__n_after_start_req_40: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_40;
+ return s_n_llhttp__internal__n_after_start_req_40;
}
switch (*p) {
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_41;
+ goto s_n_llhttp__internal__n_after_start_req_41;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_39:
- s_n_llhttp__internal__n_start_req_39: {
+ case s_n_llhttp__internal__n_after_start_req_39:
+ s_n_llhttp__internal__n_after_start_req_39: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_39;
+ return s_n_llhttp__internal__n_after_start_req_39;
}
switch (*p) {
case 'I': {
@@ -4598,21 +5044,21 @@ static llparse_state_t llhttp__internal__run(
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_40;
+ goto s_n_llhttp__internal__n_after_start_req_40;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_45:
- s_n_llhttp__internal__n_start_req_45: {
+ case s_n_llhttp__internal__n_after_start_req_45:
+ s_n_llhttp__internal__n_after_start_req_45: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_45;
+ return s_n_llhttp__internal__n_after_start_req_45;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob43, 2);
p = match_seq.current;
@@ -4623,24 +5069,24 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_45;
+ return s_n_llhttp__internal__n_after_start_req_45;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_44:
- s_n_llhttp__internal__n_start_req_44: {
+ case s_n_llhttp__internal__n_after_start_req_44:
+ s_n_llhttp__internal__n_after_start_req_44: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_44;
+ return s_n_llhttp__internal__n_after_start_req_44;
}
switch (*p) {
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_45;
+ goto s_n_llhttp__internal__n_after_start_req_45;
}
case 'T': {
p++;
@@ -4648,51 +5094,51 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_33:
- s_n_llhttp__internal__n_start_req_33: {
+ case s_n_llhttp__internal__n_after_start_req_33:
+ s_n_llhttp__internal__n_after_start_req_33: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_33;
+ return s_n_llhttp__internal__n_after_start_req_33;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_34;
+ goto s_n_llhttp__internal__n_after_start_req_34;
}
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_37;
+ goto s_n_llhttp__internal__n_after_start_req_37;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_38;
+ goto s_n_llhttp__internal__n_after_start_req_38;
}
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_39;
+ goto s_n_llhttp__internal__n_after_start_req_39;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_44;
+ goto s_n_llhttp__internal__n_after_start_req_44;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_48:
- s_n_llhttp__internal__n_start_req_48: {
+ case s_n_llhttp__internal__n_after_start_req_48:
+ s_n_llhttp__internal__n_after_start_req_48: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_48;
+ return s_n_llhttp__internal__n_after_start_req_48;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob44, 3);
p = match_seq.current;
@@ -4703,21 +5149,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_48;
+ return s_n_llhttp__internal__n_after_start_req_48;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_49:
- s_n_llhttp__internal__n_start_req_49: {
+ case s_n_llhttp__internal__n_after_start_req_49:
+ s_n_llhttp__internal__n_after_start_req_49: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_49;
+ return s_n_llhttp__internal__n_after_start_req_49;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob45, 3);
p = match_seq.current;
@@ -4728,21 +5174,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_49;
+ return s_n_llhttp__internal__n_after_start_req_49;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_50:
- s_n_llhttp__internal__n_start_req_50: {
+ case s_n_llhttp__internal__n_after_start_req_50:
+ s_n_llhttp__internal__n_after_start_req_50: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_50;
+ return s_n_llhttp__internal__n_after_start_req_50;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob46, 5);
p = match_seq.current;
@@ -4753,21 +5199,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_50;
+ return s_n_llhttp__internal__n_after_start_req_50;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_51:
- s_n_llhttp__internal__n_start_req_51: {
+ case s_n_llhttp__internal__n_after_start_req_51:
+ s_n_llhttp__internal__n_after_start_req_51: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_51;
+ return s_n_llhttp__internal__n_after_start_req_51;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob47, 3);
p = match_seq.current;
@@ -4778,67 +5224,67 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_51;
+ return s_n_llhttp__internal__n_after_start_req_51;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_47:
- s_n_llhttp__internal__n_start_req_47: {
+ case s_n_llhttp__internal__n_after_start_req_47:
+ s_n_llhttp__internal__n_after_start_req_47: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_47;
+ return s_n_llhttp__internal__n_after_start_req_47;
}
switch (*p) {
case 'B': {
p++;
- goto s_n_llhttp__internal__n_start_req_48;
+ goto s_n_llhttp__internal__n_after_start_req_48;
}
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_49;
+ goto s_n_llhttp__internal__n_after_start_req_49;
}
case 'D': {
p++;
- goto s_n_llhttp__internal__n_start_req_50;
+ goto s_n_llhttp__internal__n_after_start_req_50;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_51;
+ goto s_n_llhttp__internal__n_after_start_req_51;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_46:
- s_n_llhttp__internal__n_start_req_46: {
+ case s_n_llhttp__internal__n_after_start_req_46:
+ s_n_llhttp__internal__n_after_start_req_46: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_46;
+ return s_n_llhttp__internal__n_after_start_req_46;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_47;
+ goto s_n_llhttp__internal__n_after_start_req_47;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_54:
- s_n_llhttp__internal__n_start_req_54: {
+ case s_n_llhttp__internal__n_after_start_req_54:
+ s_n_llhttp__internal__n_after_start_req_54: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_54;
+ return s_n_llhttp__internal__n_after_start_req_54;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob48, 3);
p = match_seq.current;
@@ -4849,19 +5295,19 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_54;
+ return s_n_llhttp__internal__n_after_start_req_54;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_56:
- s_n_llhttp__internal__n_start_req_56: {
+ case s_n_llhttp__internal__n_after_start_req_56:
+ s_n_llhttp__internal__n_after_start_req_56: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_56;
+ return s_n_llhttp__internal__n_after_start_req_56;
}
switch (*p) {
case 'P': {
@@ -4870,18 +5316,18 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_57:
- s_n_llhttp__internal__n_start_req_57: {
+ case s_n_llhttp__internal__n_after_start_req_57:
+ s_n_llhttp__internal__n_after_start_req_57: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_57;
+ return s_n_llhttp__internal__n_after_start_req_57;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob49, 9);
p = match_seq.current;
@@ -4892,63 +5338,63 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_57;
+ return s_n_llhttp__internal__n_after_start_req_57;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_55:
- s_n_llhttp__internal__n_start_req_55: {
+ case s_n_llhttp__internal__n_after_start_req_55:
+ s_n_llhttp__internal__n_after_start_req_55: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_55;
+ return s_n_llhttp__internal__n_after_start_req_55;
}
switch (*p) {
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_56;
+ goto s_n_llhttp__internal__n_after_start_req_56;
}
case '_': {
p++;
- goto s_n_llhttp__internal__n_start_req_57;
+ goto s_n_llhttp__internal__n_after_start_req_57;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_53:
- s_n_llhttp__internal__n_start_req_53: {
+ case s_n_llhttp__internal__n_after_start_req_53:
+ s_n_llhttp__internal__n_after_start_req_53: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_53;
+ return s_n_llhttp__internal__n_after_start_req_53;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_54;
+ goto s_n_llhttp__internal__n_after_start_req_54;
}
case 'T': {
p++;
- goto s_n_llhttp__internal__n_start_req_55;
+ goto s_n_llhttp__internal__n_after_start_req_55;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_58:
- s_n_llhttp__internal__n_start_req_58: {
+ case s_n_llhttp__internal__n_after_start_req_58:
+ s_n_llhttp__internal__n_after_start_req_58: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_58;
+ return s_n_llhttp__internal__n_after_start_req_58;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob50, 4);
p = match_seq.current;
@@ -4959,21 +5405,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_58;
+ return s_n_llhttp__internal__n_after_start_req_58;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_59:
- s_n_llhttp__internal__n_start_req_59: {
+ case s_n_llhttp__internal__n_after_start_req_59:
+ s_n_llhttp__internal__n_after_start_req_59: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_59;
+ return s_n_llhttp__internal__n_after_start_req_59;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob51, 7);
p = match_seq.current;
@@ -4984,46 +5430,46 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_59;
+ return s_n_llhttp__internal__n_after_start_req_59;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_52:
- s_n_llhttp__internal__n_start_req_52: {
+ case s_n_llhttp__internal__n_after_start_req_52:
+ s_n_llhttp__internal__n_after_start_req_52: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_52;
+ return s_n_llhttp__internal__n_after_start_req_52;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_53;
+ goto s_n_llhttp__internal__n_after_start_req_53;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_58;
+ goto s_n_llhttp__internal__n_after_start_req_58;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_59;
+ goto s_n_llhttp__internal__n_after_start_req_59;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_61:
- s_n_llhttp__internal__n_start_req_61: {
+ case s_n_llhttp__internal__n_after_start_req_61:
+ s_n_llhttp__internal__n_after_start_req_61: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_61;
+ return s_n_llhttp__internal__n_after_start_req_61;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob52, 6);
p = match_seq.current;
@@ -5034,21 +5480,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_61;
+ return s_n_llhttp__internal__n_after_start_req_61;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_62:
- s_n_llhttp__internal__n_start_req_62: {
+ case s_n_llhttp__internal__n_after_start_req_62:
+ s_n_llhttp__internal__n_after_start_req_62: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_62;
+ return s_n_llhttp__internal__n_after_start_req_62;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob53, 3);
p = match_seq.current;
@@ -5059,42 +5505,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_62;
+ return s_n_llhttp__internal__n_after_start_req_62;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_60:
- s_n_llhttp__internal__n_start_req_60: {
+ case s_n_llhttp__internal__n_after_start_req_60:
+ s_n_llhttp__internal__n_after_start_req_60: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_60;
+ return s_n_llhttp__internal__n_after_start_req_60;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_61;
+ goto s_n_llhttp__internal__n_after_start_req_61;
}
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_62;
+ goto s_n_llhttp__internal__n_after_start_req_62;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_65:
- s_n_llhttp__internal__n_start_req_65: {
+ case s_n_llhttp__internal__n_after_start_req_65:
+ s_n_llhttp__internal__n_after_start_req_65: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_65;
+ return s_n_llhttp__internal__n_after_start_req_65;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob54, 3);
p = match_seq.current;
@@ -5105,21 +5551,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_65;
+ return s_n_llhttp__internal__n_after_start_req_65;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_67:
- s_n_llhttp__internal__n_start_req_67: {
+ case s_n_llhttp__internal__n_after_start_req_67:
+ s_n_llhttp__internal__n_after_start_req_67: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_67;
+ return s_n_llhttp__internal__n_after_start_req_67;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob55, 2);
p = match_seq.current;
@@ -5130,21 +5576,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_67;
+ return s_n_llhttp__internal__n_after_start_req_67;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_68:
- s_n_llhttp__internal__n_start_req_68: {
+ case s_n_llhttp__internal__n_after_start_req_68:
+ s_n_llhttp__internal__n_after_start_req_68: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_68;
+ return s_n_llhttp__internal__n_after_start_req_68;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob56, 2);
p = match_seq.current;
@@ -5155,42 +5601,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_68;
+ return s_n_llhttp__internal__n_after_start_req_68;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_66:
- s_n_llhttp__internal__n_start_req_66: {
+ case s_n_llhttp__internal__n_after_start_req_66:
+ s_n_llhttp__internal__n_after_start_req_66: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_66;
+ return s_n_llhttp__internal__n_after_start_req_66;
}
switch (*p) {
case 'I': {
p++;
- goto s_n_llhttp__internal__n_start_req_67;
+ goto s_n_llhttp__internal__n_after_start_req_67;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_68;
+ goto s_n_llhttp__internal__n_after_start_req_68;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_69:
- s_n_llhttp__internal__n_start_req_69: {
+ case s_n_llhttp__internal__n_after_start_req_69:
+ s_n_llhttp__internal__n_after_start_req_69: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_69;
+ return s_n_llhttp__internal__n_after_start_req_69;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob57, 8);
p = match_seq.current;
@@ -5201,139 +5647,154 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_69;
+ return s_n_llhttp__internal__n_after_start_req_69;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_64:
- s_n_llhttp__internal__n_start_req_64: {
+ case s_n_llhttp__internal__n_after_start_req_64:
+ s_n_llhttp__internal__n_after_start_req_64: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_64;
+ return s_n_llhttp__internal__n_after_start_req_64;
}
switch (*p) {
case 'B': {
p++;
- goto s_n_llhttp__internal__n_start_req_65;
+ goto s_n_llhttp__internal__n_after_start_req_65;
}
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_66;
+ goto s_n_llhttp__internal__n_after_start_req_66;
}
case 'S': {
p++;
- goto s_n_llhttp__internal__n_start_req_69;
+ goto s_n_llhttp__internal__n_after_start_req_69;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_63:
- s_n_llhttp__internal__n_start_req_63: {
+ case s_n_llhttp__internal__n_after_start_req_63:
+ s_n_llhttp__internal__n_after_start_req_63: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_63;
+ return s_n_llhttp__internal__n_after_start_req_63;
}
switch (*p) {
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_64;
+ goto s_n_llhttp__internal__n_after_start_req_64;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req:
- s_n_llhttp__internal__n_start_req: {
+ case s_n_llhttp__internal__n_after_start_req:
+ s_n_llhttp__internal__n_after_start_req: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req;
+ return s_n_llhttp__internal__n_after_start_req;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_1;
+ goto s_n_llhttp__internal__n_after_start_req_1;
}
case 'B': {
p++;
- goto s_n_llhttp__internal__n_start_req_4;
+ goto s_n_llhttp__internal__n_after_start_req_4;
}
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_5;
+ goto s_n_llhttp__internal__n_after_start_req_5;
}
case 'D': {
p++;
- goto s_n_llhttp__internal__n_start_req_10;
+ goto s_n_llhttp__internal__n_after_start_req_10;
}
case 'F': {
p++;
- goto s_n_llhttp__internal__n_start_req_14;
+ goto s_n_llhttp__internal__n_after_start_req_14;
}
case 'G': {
p++;
- goto s_n_llhttp__internal__n_start_req_15;
+ goto s_n_llhttp__internal__n_after_start_req_15;
}
case 'H': {
p++;
- goto s_n_llhttp__internal__n_start_req_18;
+ goto s_n_llhttp__internal__n_after_start_req_18;
}
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_19;
+ goto s_n_llhttp__internal__n_after_start_req_19;
}
case 'M': {
p++;
- goto s_n_llhttp__internal__n_start_req_22;
+ goto s_n_llhttp__internal__n_after_start_req_22;
}
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_31;
+ goto s_n_llhttp__internal__n_after_start_req_31;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_32;
+ goto s_n_llhttp__internal__n_after_start_req_32;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_33;
+ goto s_n_llhttp__internal__n_after_start_req_33;
}
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_46;
+ goto s_n_llhttp__internal__n_after_start_req_46;
}
case 'S': {
p++;
- goto s_n_llhttp__internal__n_start_req_52;
+ goto s_n_llhttp__internal__n_after_start_req_52;
}
case 'T': {
p++;
- goto s_n_llhttp__internal__n_start_req_60;
+ goto s_n_llhttp__internal__n_after_start_req_60;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_63;
+ goto s_n_llhttp__internal__n_after_start_req_63;
}
default: {
- goto s_n_llhttp__internal__n_error_61;
+ goto s_n_llhttp__internal__n_error_84;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_method_1:
+ s_n_llhttp__internal__n_span_start_llhttp__on_method_1: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_method_1;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_method;
+ goto s_n_llhttp__internal__n_after_start_req;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_invoke_llhttp__on_status_complete:
s_n_llhttp__internal__n_invoke_llhttp__on_status_complete: {
switch (llhttp__on_status_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_headers_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_20;
default:
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_error_75;
}
/* UNREACHABLE */;
abort();
@@ -5349,7 +5810,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_llhttp__on_status_complete;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_76;
}
}
/* UNREACHABLE */;
@@ -5424,7 +5885,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_res_status_start;
}
default: {
- goto s_n_llhttp__internal__n_error_55;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
@@ -5493,10 +5954,10 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_res_http_end:
- s_n_llhttp__internal__n_res_http_end: {
+ case s_n_llhttp__internal__n_res_after_version:
+ s_n_llhttp__internal__n_res_after_version: {
if (p == endp) {
- return s_n_llhttp__internal__n_res_http_end;
+ return s_n_llhttp__internal__n_res_after_version;
}
switch (*p) {
case ' ': {
@@ -5504,12 +5965,45 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_update_status_code;
}
default: {
- goto s_n_llhttp__internal__n_error_56;
+ goto s_n_llhttp__internal__n_error_78;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1: {
+ switch (llhttp__on_version_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_res_after_version;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_21;
+ default:
+ goto s_n_llhttp__internal__n_error_73;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_72:
+ s_n_llhttp__internal__n_error_72: {
+ state->error = 0x9;
+ state->reason = "Invalid HTTP version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_79:
+ s_n_llhttp__internal__n_error_79: {
+ state->error = 0x9;
+ state->reason = "Invalid minor version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_res_http_minor:
s_n_llhttp__internal__n_res_http_minor: {
if (p == endp) {
@@ -5567,12 +6061,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_minor_1;
}
default: {
- goto s_n_llhttp__internal__n_error_57;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_7;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_80:
+ s_n_llhttp__internal__n_error_80: {
+ state->error = 0x9;
+ state->reason = "Expected dot";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_res_http_dot:
s_n_llhttp__internal__n_res_http_dot: {
if (p == endp) {
@@ -5584,12 +6088,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_res_http_minor;
}
default: {
- goto s_n_llhttp__internal__n_error_58;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_8;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_81:
+ s_n_llhttp__internal__n_error_81: {
+ state->error = 0x9;
+ state->reason = "Invalid major version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_res_http_major:
s_n_llhttp__internal__n_res_http_major: {
if (p == endp) {
@@ -5647,12 +6161,23 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_major_1;
}
default: {
- goto s_n_llhttp__internal__n_error_59;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_9;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_version_1:
+ s_n_llhttp__internal__n_span_start_llhttp__on_version_1: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_version_1;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_version;
+ goto s_n_llhttp__internal__n_res_http_major;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_start_res:
s_n_llhttp__internal__n_start_res: {
llparse_match_t match_seq;
@@ -5665,18 +6190,31 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_res_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version_1;
}
case kMatchPause: {
return s_n_llhttp__internal__n_start_res;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_62;
+ goto s_n_llhttp__internal__n_error_85;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_llhttp__on_method_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete: {
+ switch (llhttp__on_method_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_req_first_space_before_url;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_19;
+ default:
+ goto s_n_llhttp__internal__n_error_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_or_res_method_2:
s_n_llhttp__internal__n_req_or_res_method_2: {
llparse_match_t match_seq;
@@ -5696,12 +6234,21 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_or_res_method_2;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_60;
+ goto s_n_llhttp__internal__n_error_82;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_update_type_1:
+ s_n_llhttp__internal__n_invoke_update_type_1: {
+ switch (llhttp__internal__c_update_type_1(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_or_res_method_3:
s_n_llhttp__internal__n_req_or_res_method_3: {
llparse_match_t match_seq;
@@ -5714,13 +6261,13 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_type_1;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_method_1;
}
case kMatchPause: {
return s_n_llhttp__internal__n_req_or_res_method_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_60;
+ goto s_n_llhttp__internal__n_error_82;
}
}
/* UNREACHABLE */;
@@ -5741,7 +6288,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_or_res_method_3;
}
default: {
- goto s_n_llhttp__internal__n_error_60;
+ goto s_n_llhttp__internal__n_error_82;
}
}
/* UNREACHABLE */;
@@ -5758,12 +6305,23 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_or_res_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_60;
+ goto s_n_llhttp__internal__n_error_82;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_method:
+ s_n_llhttp__internal__n_span_start_llhttp__on_method: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_method;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_method;
+ goto s_n_llhttp__internal__n_req_or_res_method;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_start_req_or_res:
s_n_llhttp__internal__n_start_req_or_res: {
if (p == endp) {
@@ -5771,7 +6329,7 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case 'H': {
- goto s_n_llhttp__internal__n_req_or_res_method;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_method;
}
default: {
goto s_n_llhttp__internal__n_invoke_update_type_2;
@@ -5784,7 +6342,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_type: {
switch (llhttp__internal__c_load_type(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_start_req;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_method_1;
case 2:
goto s_n_llhttp__internal__n_start_res;
default:
@@ -5793,6 +6351,15 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_update_finish:
+ s_n_llhttp__internal__n_invoke_update_finish: {
+ switch (llhttp__internal__c_update_finish(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_message_begin;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_start:
s_n_llhttp__internal__n_start: {
if (p == endp) {
@@ -5808,7 +6375,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_start;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_finish;
+ goto s_n_llhttp__internal__n_invoke_load_initial_message_completed;
}
}
/* UNREACHABLE */;
@@ -5818,7 +6385,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */
abort();
}
- s_n_llhttp__internal__n_error_1: {
+ s_n_llhttp__internal__n_error_2: {
state->error = 0x7;
state->reason = "Invalid characters in url (strict mode)";
state->error_pos = (const char*) p;
@@ -5827,7 +6394,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_48: {
+ s_n_llhttp__internal__n_error_67: {
state->error = 0x7;
state->reason = "Invalid characters in url";
state->error_pos = (const char*) p;
@@ -5844,7 +6411,23 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_4: {
+ s_n_llhttp__internal__n_invoke_update_initial_message_completed: {
+ switch (llhttp__internal__c_update_initial_message_completed(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_update_finish_2;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_update_content_length: {
+ switch (llhttp__internal__c_update_content_length(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_update_initial_message_completed;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_7: {
state->error = 0x5;
state->reason = "Data after `Connection: close`";
state->error_pos = (const char*) p;
@@ -5853,10 +6436,10 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags: {
- switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_1: {
+ switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_update_finish_2;
+ goto s_n_llhttp__internal__n_invoke_update_initial_message_completed;
default:
goto s_n_llhttp__internal__n_closed;
}
@@ -5866,12 +6449,12 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_update_finish_1: {
switch (llhttp__internal__c_update_finish_1(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_1;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_5: {
+ s_n_llhttp__internal__n_pause_11: {
state->error = 0x15;
state->reason = "on_message_complete pause";
state->error_pos = (const char*) p;
@@ -5880,7 +6463,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_14: {
+ s_n_llhttp__internal__n_error_28: {
state->error = 0x12;
state->reason = "`on_message_complete` callback error";
state->error_pos = (const char*) p;
@@ -5889,7 +6472,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_7: {
+ s_n_llhttp__internal__n_pause_13: {
state->error = 0x15;
state->reason = "on_chunk_complete pause";
state->error_pos = (const char*) p;
@@ -5898,7 +6481,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_17: {
+ s_n_llhttp__internal__n_error_31: {
state->error = 0x14;
state->reason = "`on_chunk_complete` callback error";
state->error_pos = (const char*) p;
@@ -5912,14 +6495,14 @@ static llparse_state_t llhttp__internal__run(
case 0:
goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
case 21:
- goto s_n_llhttp__internal__n_pause_7;
+ goto s_n_llhttp__internal__n_pause_13;
default:
- goto s_n_llhttp__internal__n_error_17;
+ goto s_n_llhttp__internal__n_error_31;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_16: {
+ s_n_llhttp__internal__n_error_30: {
state->error = 0x4;
state->reason = "Content-Length can't be present with Transfer-Encoding";
state->error_pos = (const char*) p;
@@ -5937,7 +6520,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_5: {
+ s_n_llhttp__internal__n_error_8: {
state->error = 0x12;
state->reason = "`on_message_complete` callback error";
state->error_pos = (const char*) p;
@@ -5953,12 +6536,12 @@ static llparse_state_t llhttp__internal__run(
case 21:
goto s_n_llhttp__internal__n_pause_2;
default:
- goto s_n_llhttp__internal__n_error_5;
+ goto s_n_llhttp__internal__n_error_8;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_12: {
+ s_n_llhttp__internal__n_error_26: {
state->error = 0xc;
state->reason = "Chunk size overflow";
state->error_pos = (const char*) p;
@@ -5971,12 +6554,12 @@ static llparse_state_t llhttp__internal__run(
state->error = 0x15;
state->reason = "on_chunk_complete pause";
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_content_length;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_content_length_1;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_7: {
+ s_n_llhttp__internal__n_error_10: {
state->error = 0x14;
state->reason = "`on_chunk_complete` callback error";
state->error_pos = (const char*) p;
@@ -5988,16 +6571,16 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete: {
switch (llhttp__on_chunk_complete(state, p, endp)) {
case 0:
- goto s_n_llhttp__internal__n_invoke_update_content_length;
+ goto s_n_llhttp__internal__n_invoke_update_content_length_1;
case 21:
goto s_n_llhttp__internal__n_pause_3;
default:
- goto s_n_llhttp__internal__n_error_7;
+ goto s_n_llhttp__internal__n_error_10;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_8: {
+ s_n_llhttp__internal__n_error_11: {
state->error = 0x2;
state->reason = "Expected CRLF after chunk";
state->error_pos = (const char*) p;
@@ -6040,7 +6623,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_6: {
+ s_n_llhttp__internal__n_error_9: {
state->error = 0x13;
state->reason = "`on_chunk_header` callback error";
state->error_pos = (const char*) p;
@@ -6056,12 +6639,12 @@ static llparse_state_t llhttp__internal__run(
case 21:
goto s_n_llhttp__internal__n_pause_4;
default:
- goto s_n_llhttp__internal__n_error_6;
+ goto s_n_llhttp__internal__n_error_9;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_9: {
+ s_n_llhttp__internal__n_error_12: {
state->error = 0x2;
state->reason = "Expected LF after chunk size";
state->error_pos = (const char*) p;
@@ -6070,299 +6653,616 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_10: {
+ s_n_llhttp__internal__n_error_13: {
state->error = 0x2;
- state->reason = "Invalid character in chunk parameters";
+ state->reason = "Invalid character in chunk extensions";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_11: {
- state->error = 0xc;
- state->reason = "Invalid character in chunk size";
+ s_n_llhttp__internal__n_error_14: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_mul_add_content_length: {
- switch (llhttp__internal__c_mul_add_content_length(state, p, endp, match)) {
- case 1:
- goto s_n_llhttp__internal__n_error_12;
- default:
- goto s_n_llhttp__internal__n_chunk_size;
- }
+ s_n_llhttp__internal__n_pause_5: {
+ state->error = 0x15;
+ state->reason = "on_chunk_extension_name pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_almost_done;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_13: {
- state->error = 0xc;
- state->reason = "Invalid character in chunk size";
+ s_n_llhttp__internal__n_error_15: {
+ state->error = 0x22;
+ state->reason = "`on_chunk_extension_name` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_span_end_llhttp__on_body_1: {
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name: {
const unsigned char* start;
int err;
start = state->_span_pos0;
state->_span_pos0 = NULL;
- err = llhttp__on_body(state, start, p);
+ err = llhttp__on_chunk_extension_name(state, start, p);
if (err != 0) {
state->error = err;
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete;
return s_error;
}
- goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_finish_3: {
- switch (llhttp__internal__c_update_finish_3(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2;
- }
+ s_n_llhttp__internal__n_pause_6: {
+ state->error = 0x15;
+ state->reason = "on_chunk_extension_name pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extensions;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_15: {
- state->error = 0xf;
- state->reason = "Request has invalid `Transfer-Encoding`";
+ s_n_llhttp__internal__n_error_16: {
+ state->error = 0x22;
+ state->reason = "`on_chunk_extension_name` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause: {
- state->error = 0x15;
- state->reason = "on_message_complete pause";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_message_complete;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_name(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_7: {
+ state->error = 0x15;
+ state->reason = "on_chunk_extension_value pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_almost_done;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_3: {
- state->error = 0x12;
- state->reason = "`on_message_complete` callback error";
+ s_n_llhttp__internal__n_error_18: {
+ state->error = 0x23;
+ state->reason = "`on_chunk_extension_value` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_llhttp__on_message_complete: {
- switch (llhttp__on_message_complete(state, p, endp)) {
- case 0:
- goto s_n_llhttp__internal__n_invoke_llhttp__after_message_complete;
- case 21:
- goto s_n_llhttp__internal__n_pause;
- default:
- goto s_n_llhttp__internal__n_error_3;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete;
+ return s_error;
}
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags_1: {
- switch (llhttp__internal__c_or_flags_1(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
- }
+ s_n_llhttp__internal__n_error_20: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions quote value";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags_2: {
- switch (llhttp__internal__c_or_flags_1(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
+ s_n_llhttp__internal__n_pause_8: {
+ state->error = 0x15;
+ state->reason = "on_chunk_extension_value pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extension_quoted_value_done;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_19: {
+ state->error = 0x23;
+ state->reason = "`on_chunk_extension_value` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1;
+ return s_error;
}
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_upgrade: {
- switch (llhttp__internal__c_update_upgrade(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_invoke_or_flags_2;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_21;
+ return s_error;
}
+ p++;
+ goto s_n_llhttp__internal__n_error_21;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_6: {
+ s_n_llhttp__internal__n_pause_9: {
state->error = 0x15;
- state->reason = "Paused by on_headers_complete";
+ state->reason = "on_chunk_extension_value pause";
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_otherwise;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_2: {
- state->error = 0x11;
- state->reason = "User callback error";
+ s_n_llhttp__internal__n_error_22: {
+ state->error = 0x23;
+ state->reason = "`on_chunk_extension_value` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete: {
- switch (llhttp__on_headers_complete(state, p, endp)) {
- case 0:
- goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
- case 1:
- goto s_n_llhttp__internal__n_invoke_or_flags_1;
- case 2:
- goto s_n_llhttp__internal__n_invoke_update_upgrade;
- case 21:
- goto s_n_llhttp__internal__n_pause_6;
- default:
- goto s_n_llhttp__internal__n_error_2;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_3: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2;
+ return s_error;
}
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete: {
- switch (llhttp__before_headers_complete(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_4: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_23;
+ return s_error;
}
+ p++;
+ goto s_n_llhttp__internal__n_error_23;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_1: {
- switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) {
- case 0:
- goto s_n_llhttp__internal__n_error_16;
- default:
- goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete;
- }
+ s_n_llhttp__internal__n_pause_10: {
+ state->error = 0x15;
+ state->reason = "on_chunk_extension_name pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extension_value;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_flags_1: {
- switch (llhttp__internal__c_test_flags_1(state, p, endp)) {
- case 1:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_1;
- default:
- goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete;
- }
+ s_n_llhttp__internal__n_error_17: {
+ state->error = 0x22;
+ state->reason = "`on_chunk_extension_name` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_flags: {
- switch (llhttp__internal__c_test_flags(state, p, endp)) {
- case 1:
- goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1;
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2: {
+ switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_extension_value;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_10;
default:
- goto s_n_llhttp__internal__n_invoke_test_flags_1;
+ goto s_n_llhttp__internal__n_error_17;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_18: {
- state->error = 0x2;
- state->reason = "Expected LF after headers";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_name(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_span_end_llhttp__on_header_field: {
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_3: {
const unsigned char* start;
int err;
start = state->_span_pos0;
state->_span_pos0 = NULL;
- err = llhttp__on_header_field(state, start, p);
+ err = llhttp__on_chunk_extension_name(state, start, p);
if (err != 0) {
state->error = err;
state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_19;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_24;
return s_error;
}
p++;
- goto s_n_llhttp__internal__n_error_19;
+ goto s_n_llhttp__internal__n_error_24;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_2: {
- switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) {
+ s_n_llhttp__internal__n_error_25: {
+ state->error = 0xc;
+ state->reason = "Invalid character in chunk size";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_mul_add_content_length: {
+ switch (llhttp__internal__c_mul_add_content_length(state, p, endp, match)) {
case 1:
- goto s_n_llhttp__internal__n_header_field_colon_discard_ws;
+ goto s_n_llhttp__internal__n_error_26;
default:
- goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field;
+ goto s_n_llhttp__internal__n_chunk_size;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_20: {
- state->error = 0xb;
- state->reason = "Empty Content-Length";
+ s_n_llhttp__internal__n_error_27: {
+ state->error = 0xc;
+ state->reason = "Invalid character in chunk size";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_span_end_llhttp__on_header_value: {
+ s_n_llhttp__internal__n_span_end_llhttp__on_body_1: {
const unsigned char* start;
int err;
start = state->_span_pos0;
state->_span_pos0 = NULL;
- err = llhttp__on_header_value(state, start, p);
+ err = llhttp__on_body(state, start, p);
if (err != 0) {
state->error = err;
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
return s_error;
}
- goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state: {
- switch (llhttp__internal__c_update_header_state(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_finish_3: {
+ switch (llhttp__internal__c_update_finish_3(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_body_2;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags_3: {
- switch (llhttp__internal__c_or_flags_3(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_invoke_update_header_state;
- }
+ s_n_llhttp__internal__n_error_29: {
+ state->error = 0xf;
+ state->reason = "Request has invalid `Transfer-Encoding`";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags_4: {
- switch (llhttp__internal__c_or_flags_4(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_invoke_update_header_state;
- }
+ s_n_llhttp__internal__n_pause: {
+ state->error = 0x15;
+ state->reason = "on_message_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_message_complete;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags_5: {
- switch (llhttp__internal__c_or_flags_5(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_invoke_update_header_state;
- }
+ s_n_llhttp__internal__n_error_6: {
+ state->error = 0x12;
+ state->reason = "`on_message_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags_6: {
+ s_n_llhttp__internal__n_invoke_llhttp__on_message_complete: {
+ switch (llhttp__on_message_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_llhttp__after_message_complete;
+ case 21:
+ goto s_n_llhttp__internal__n_pause;
+ default:
+ goto s_n_llhttp__internal__n_error_6;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_or_flags_1: {
+ switch (llhttp__internal__c_or_flags_1(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_or_flags_2: {
+ switch (llhttp__internal__c_or_flags_1(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_update_upgrade: {
+ switch (llhttp__internal__c_update_upgrade(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_or_flags_2;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_12: {
+ state->error = 0x15;
+ state->reason = "Paused by on_headers_complete";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_5: {
+ state->error = 0x11;
+ state->reason = "User callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete: {
+ switch (llhttp__on_headers_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete;
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_or_flags_1;
+ case 2:
+ goto s_n_llhttp__internal__n_invoke_update_upgrade;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_12;
+ default:
+ goto s_n_llhttp__internal__n_error_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete: {
+ switch (llhttp__before_headers_complete(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_headers_complete;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_2: {
+ switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_error_30;
+ default:
+ goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_flags_1: {
+ switch (llhttp__internal__c_test_flags_1(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_2;
+ default:
+ goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_flags: {
+ switch (llhttp__internal__c_test_flags(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1;
+ default:
+ goto s_n_llhttp__internal__n_invoke_test_flags_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_32: {
+ state->error = 0x2;
+ state->reason = "Expected LF after headers";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_header_field: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_header_field(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_33;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_error_33;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_3: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_header_field_colon_discard_ws;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_37: {
+ state->error = 0xb;
+ state->reason = "Empty Content-Length";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_14: {
+ state->error = 0x15;
+ state->reason = "on_header_value_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_field_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_36: {
+ state->error = 0x1d;
+ state->reason = "`on_header_value_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_header_value: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_header_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_update_header_state: {
+ switch (llhttp__internal__c_update_header_state(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_or_flags_3: {
+ switch (llhttp__internal__c_or_flags_3(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_update_header_state;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_or_flags_4: {
+ switch (llhttp__internal__c_or_flags_4(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_update_header_state;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_or_flags_5: {
+ switch (llhttp__internal__c_or_flags_5(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_update_header_state;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_or_flags_6: {
switch (llhttp__internal__c_or_flags_6(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value;
@@ -6389,14 +7289,33 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_header_state: {
switch (llhttp__internal__c_load_header_state(state, p, endp)) {
case 2:
- goto s_n_llhttp__internal__n_error_20;
+ goto s_n_llhttp__internal__n_error_37;
default:
goto s_n_llhttp__internal__n_invoke_load_header_state_1;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_21: {
+ s_n_llhttp__internal__n_error_35: {
+ state->error = 0xa;
+ state->reason = "Invalid header value char";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_4: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_header_value_discard_lws;
+ default:
+ goto s_n_llhttp__internal__n_error_35;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_38: {
state->error = 0x2;
state->reason = "Expected LF after CR";
state->error_pos = (const char*) p;
@@ -6406,6 +7325,24 @@ static llparse_state_t llhttp__internal__run(
abort();
}
s_n_llhttp__internal__n_invoke_update_header_state_1: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_header_state_3: {
+ switch (llhttp__internal__c_load_header_state(state, p, endp)) {
+ case 8:
+ goto s_n_llhttp__internal__n_invoke_update_header_state_1;
+ default:
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_update_header_state_2: {
switch (llhttp__internal__c_update_header_state(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete;
@@ -6416,7 +7353,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_7: {
switch (llhttp__internal__c_or_flags_3(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_1;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_2;
}
/* UNREACHABLE */;
abort();
@@ -6424,7 +7361,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_8: {
switch (llhttp__internal__c_or_flags_4(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_1;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_2;
}
/* UNREACHABLE */;
abort();
@@ -6432,7 +7369,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_9: {
switch (llhttp__internal__c_or_flags_5(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_1;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_2;
}
/* UNREACHABLE */;
abort();
@@ -6445,7 +7382,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_header_state_3: {
+ s_n_llhttp__internal__n_invoke_load_header_state_4: {
switch (llhttp__internal__c_load_header_state(state, p, endp)) {
case 5:
goto s_n_llhttp__internal__n_invoke_or_flags_7;
@@ -6461,7 +7398,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_22: {
+ s_n_llhttp__internal__n_error_39: {
state->error = 0x3;
state->reason = "Missing expected LF after header value";
state->error_pos = (const char*) p;
@@ -6532,35 +7469,25 @@ static llparse_state_t llhttp__internal__run(
err = llhttp__on_header_value(state, start, p);
if (err != 0) {
state->error = err;
- state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_23;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_40;
return s_error;
}
- p++;
- goto s_n_llhttp__internal__n_error_23;
- /* UNREACHABLE */;
- abort();
- }
- s_n_llhttp__internal__n_error_24: {
- state->error = 0xa;
- state->reason = "Invalid header value char";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ goto s_n_llhttp__internal__n_error_40;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_3: {
- switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_5: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
case 1:
goto s_n_llhttp__internal__n_header_value_lenient;
default:
- goto s_n_llhttp__internal__n_header_value_lenient_failed;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_3: {
+ s_n_llhttp__internal__n_invoke_update_header_state_4: {
switch (llhttp__internal__c_update_header_state(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection;
@@ -6571,7 +7498,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_11: {
switch (llhttp__internal__c_or_flags_3(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_4;
}
/* UNREACHABLE */;
abort();
@@ -6579,7 +7506,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_12: {
switch (llhttp__internal__c_or_flags_4(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_4;
}
/* UNREACHABLE */;
abort();
@@ -6587,7 +7514,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_13: {
switch (llhttp__internal__c_or_flags_5(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_4;
}
/* UNREACHABLE */;
abort();
@@ -6600,7 +7527,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_header_state_4: {
+ s_n_llhttp__internal__n_invoke_load_header_state_5: {
switch (llhttp__internal__c_load_header_state(state, p, endp)) {
case 5:
goto s_n_llhttp__internal__n_invoke_or_flags_11;
@@ -6616,32 +7543,32 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_4: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_5: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_token;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_2: {
- switch (llhttp__internal__c_update_header_state_2(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_3: {
+ switch (llhttp__internal__c_update_header_state_3(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_ws;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_5: {
- switch (llhttp__internal__c_update_header_state_5(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_6: {
+ switch (llhttp__internal__c_update_header_state_6(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_ws;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_6: {
- switch (llhttp__internal__c_update_header_state_6(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_7: {
+ switch (llhttp__internal__c_update_header_state_7(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_ws;
}
@@ -6658,10 +7585,10 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_26;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_42;
return s_error;
}
- goto s_n_llhttp__internal__n_error_26;
+ goto s_n_llhttp__internal__n_error_42;
/* UNREACHABLE */;
abort();
}
@@ -6693,14 +7620,14 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_27;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_43;
return s_error;
}
- goto s_n_llhttp__internal__n_error_27;
+ goto s_n_llhttp__internal__n_error_43;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_25: {
+ s_n_llhttp__internal__n_error_41: {
state->error = 0x4;
state->reason = "Duplicate Content-Length";
state->error_pos = (const char*) p;
@@ -6714,7 +7641,7 @@ static llparse_state_t llhttp__internal__run(
case 0:
goto s_n_llhttp__internal__n_header_value_content_length;
default:
- goto s_n_llhttp__internal__n_error_25;
+ goto s_n_llhttp__internal__n_error_41;
}
/* UNREACHABLE */;
abort();
@@ -6729,16 +7656,16 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_29;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_45;
return s_error;
}
p++;
- goto s_n_llhttp__internal__n_error_29;
+ goto s_n_llhttp__internal__n_error_45;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_7: {
- switch (llhttp__internal__c_update_header_state_7(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_8: {
+ switch (llhttp__internal__c_update_header_state_8(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_otherwise;
}
@@ -6755,16 +7682,16 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_28;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_44;
return s_error;
}
p++;
- goto s_n_llhttp__internal__n_error_28;
+ goto s_n_llhttp__internal__n_error_44;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_4: {
- switch (llhttp__internal__c_test_lenient_flags_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_6: {
+ switch (llhttp__internal__c_test_lenient_flags_6(state, p, endp)) {
case 0:
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_7;
default:
@@ -6776,15 +7703,15 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_type_1: {
switch (llhttp__internal__c_load_type(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_4;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_6;
default:
goto s_n_llhttp__internal__n_header_value_te_chunked;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_8: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_9: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value;
}
@@ -6807,8 +7734,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_5: {
- switch (llhttp__internal__c_test_lenient_flags_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_7: {
+ switch (llhttp__internal__c_test_lenient_flags_6(state, p, endp)) {
case 0:
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_8;
default:
@@ -6820,7 +7747,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_type_2: {
switch (llhttp__internal__c_load_type(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_5;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_7;
default:
goto s_n_llhttp__internal__n_invoke_or_flags_17;
}
@@ -6848,7 +7775,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_18: {
switch (llhttp__internal__c_or_flags_18(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_8;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_9;
}
/* UNREACHABLE */;
abort();
@@ -6869,6 +7796,24 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_15: {
+ state->error = 0x15;
+ state->reason = "on_header_field_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_discard_ws;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_34: {
+ state->error = 0x1c;
+ state->reason = "`on_header_field_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1: {
const unsigned char* start;
int err;
@@ -6905,7 +7850,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_30: {
+ s_n_llhttp__internal__n_error_46: {
state->error = 0xa;
state->reason = "Invalid header token";
state->error_pos = (const char*) p;
@@ -6914,8 +7859,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_9: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_10: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_field_general;
}
@@ -6930,18 +7875,59 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_10: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_11: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_field_general;
}
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_error_4: {
+ state->error = 0x1e;
+ state->reason = "Unexpected space after start line";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_header_field_start;
+ default:
+ goto s_n_llhttp__internal__n_error_4;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_16: {
+ state->error = 0x15;
+ state->reason = "on_url_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_headers_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_3: {
+ state->error = 0x1a;
+ state->reason = "`on_url_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_llhttp__on_url_complete: {
switch (llhttp__on_url_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_headers_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_16;
default:
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_error_3;
}
/* UNREACHABLE */;
abort();
@@ -6979,7 +7965,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_31: {
+ s_n_llhttp__internal__n_error_47: {
state->error = 0x7;
state->reason = "Expected CRLF";
state->error_pos = (const char*) p;
@@ -7005,7 +7991,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_34: {
+ s_n_llhttp__internal__n_error_53: {
state->error = 0x17;
state->reason = "Pause on PRI/Upgrade";
state->error_pos = (const char*) p;
@@ -7014,7 +8000,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_35: {
+ s_n_llhttp__internal__n_error_54: {
state->error = 0x9;
state->reason = "Expected HTTP/2 Connection Preface";
state->error_pos = (const char*) p;
@@ -7023,7 +8009,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_33: {
+ s_n_llhttp__internal__n_error_52: {
state->error = 0x9;
state->reason = "Expected CRLF after version";
state->error_pos = (const char*) p;
@@ -7032,12 +8018,110 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_method_1: {
- switch (llhttp__internal__c_load_method(state, p, endp)) {
- case 34:
- goto s_n_llhttp__internal__n_req_pri_upgrade;
+ s_n_llhttp__internal__n_pause_17: {
+ state->error = 0x15;
+ state->reason = "on_version_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_method_1;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_51: {
+ state->error = 0x21;
+ state->reason = "`on_version_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_version_complete;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_version_complete;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_50;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_50;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 9:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_1: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_2: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_major: {
+ switch (llhttp__internal__c_load_http_major(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor;
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_1;
+ case 2:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_2;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_8: {
+ switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
default:
- goto s_n_llhttp__internal__n_req_http_complete;
+ goto s_n_llhttp__internal__n_invoke_load_http_major;
}
/* UNREACHABLE */;
abort();
@@ -7045,26 +8129,42 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_store_http_minor: {
switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) {
default:
- goto s_n_llhttp__internal__n_invoke_load_method_1;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_8;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_36: {
- state->error = 0x9;
- state->reason = "Invalid minor version";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_55;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_55;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_37: {
- state->error = 0x9;
- state->reason = "Expected dot";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_3: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_56;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_56;
/* UNREACHABLE */;
abort();
}
@@ -7076,16 +8176,24 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_38: {
- state->error = 0x9;
- state->reason = "Invalid major version";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_4: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_57;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_57;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_32: {
+ s_n_llhttp__internal__n_error_49: {
state->error = 0x8;
state->reason = "Invalid method for HTTP/x.x request";
state->error_pos = (const char*) p;
@@ -7097,82 +8205,82 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_method: {
switch (llhttp__internal__c_load_method(state, p, endp)) {
case 0:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 1:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 2:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 3:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 4:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 5:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 6:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 7:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 8:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 9:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 10:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 11:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 12:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 13:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 14:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 15:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 16:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 17:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 18:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 19:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 20:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 21:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 22:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 23:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 24:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 25:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 26:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 27:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 28:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 29:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 30:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 31:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 32:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 33:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 34:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
default:
- goto s_n_llhttp__internal__n_error_32;
+ goto s_n_llhttp__internal__n_error_49;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_41: {
+ s_n_llhttp__internal__n_error_60: {
state->error = 0x8;
state->reason = "Expected HTTP/";
state->error_pos = (const char*) p;
@@ -7181,7 +8289,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_39: {
+ s_n_llhttp__internal__n_error_58: {
state->error = 0x8;
state->reason = "Expected SOURCE method for ICE/x.x request";
state->error_pos = (const char*) p;
@@ -7193,14 +8301,14 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_method_2: {
switch (llhttp__internal__c_load_method(state, p, endp)) {
case 33:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
default:
- goto s_n_llhttp__internal__n_error_39;
+ goto s_n_llhttp__internal__n_error_58;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_40: {
+ s_n_llhttp__internal__n_error_59: {
state->error = 0x8;
state->reason = "Invalid method for RTSP/x.x request";
state->error_pos = (const char*) p;
@@ -7212,43 +8320,65 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_method_3: {
switch (llhttp__internal__c_load_method(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 3:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 6:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 35:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 36:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 37:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 38:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 39:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 40:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 41:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 42:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 43:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 44:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 45:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
default:
- goto s_n_llhttp__internal__n_error_40;
+ goto s_n_llhttp__internal__n_error_59;
}
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_18: {
+ state->error = 0x15;
+ state->reason = "on_url_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_http_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_48: {
+ state->error = 0x1a;
+ state->reason = "`on_url_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_llhttp__on_url_complete_1: {
switch (llhttp__on_url_complete(state, p, endp)) {
- default:
+ case 0:
goto s_n_llhttp__internal__n_req_http_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_18;
+ default:
+ goto s_n_llhttp__internal__n_error_48;
}
/* UNREACHABLE */;
abort();
@@ -7321,7 +8451,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_42: {
+ s_n_llhttp__internal__n_error_61: {
state->error = 0x7;
state->reason = "Invalid char in url fragment start";
state->error_pos = (const char*) p;
@@ -7381,7 +8511,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_43: {
+ s_n_llhttp__internal__n_error_62: {
state->error = 0x7;
state->reason = "Invalid char in url query";
state->error_pos = (const char*) p;
@@ -7390,7 +8520,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_44: {
+ s_n_llhttp__internal__n_error_63: {
state->error = 0x7;
state->reason = "Invalid char in url path";
state->error_pos = (const char*) p;
@@ -7501,7 +8631,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_45: {
+ s_n_llhttp__internal__n_error_64: {
state->error = 0x7;
state->reason = "Double @ in url";
state->error_pos = (const char*) p;
@@ -7510,7 +8640,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_46: {
+ s_n_llhttp__internal__n_error_65: {
state->error = 0x7;
state->reason = "Unexpected char in url server";
state->error_pos = (const char*) p;
@@ -7519,7 +8649,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_47: {
+ s_n_llhttp__internal__n_error_66: {
state->error = 0x7;
state->reason = "Unexpected char in url server";
state->error_pos = (const char*) p;
@@ -7528,7 +8658,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_49: {
+ s_n_llhttp__internal__n_error_68: {
state->error = 0x7;
state->reason = "Unexpected char in url schema";
state->error_pos = (const char*) p;
@@ -7537,7 +8667,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_50: {
+ s_n_llhttp__internal__n_error_69: {
state->error = 0x7;
state->reason = "Unexpected char in url schema";
state->error_pos = (const char*) p;
@@ -7546,7 +8676,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_51: {
+ s_n_llhttp__internal__n_error_70: {
state->error = 0x7;
state->reason = "Unexpected start char in url";
state->error_pos = (const char*) p;
@@ -7565,7 +8695,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_52: {
+ s_n_llhttp__internal__n_error_71: {
state->error = 0x6;
state->reason = "Expected space after method";
state->error_pos = (const char*) p;
@@ -7574,15 +8704,50 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_store_method_1: {
- switch (llhttp__internal__c_store_method(state, p, endp, match)) {
- default:
- goto s_n_llhttp__internal__n_req_first_space_before_url;
- }
+ s_n_llhttp__internal__n_pause_22: {
+ state->error = 0x15;
+ state->reason = "on_method_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_first_space_before_url;
+ return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_61: {
+ s_n_llhttp__internal__n_error_83: {
+ state->error = 0x20;
+ state->reason = "`on_method_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_method_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_method(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_store_method_1: {
+ switch (llhttp__internal__c_store_method(state, p, endp, match)) {
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_method_2;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_84: {
state->error = 0x6;
state->reason = "Invalid method encountered";
state->error_pos = (const char*) p;
@@ -7591,7 +8756,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_53: {
+ s_n_llhttp__internal__n_error_74: {
state->error = 0xd;
state->reason = "Response overflow";
state->error_pos = (const char*) p;
@@ -7603,14 +8768,32 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_mul_add_status_code: {
switch (llhttp__internal__c_mul_add_status_code(state, p, endp, match)) {
case 1:
- goto s_n_llhttp__internal__n_error_53;
+ goto s_n_llhttp__internal__n_error_74;
default:
goto s_n_llhttp__internal__n_res_status_code;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_54: {
+ s_n_llhttp__internal__n_pause_20: {
+ state->error = 0x15;
+ state->reason = "on_status_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_headers_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_75: {
+ state->error = 0x1b;
+ state->reason = "`on_status_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_76: {
state->error = 0x2;
state->reason = "Expected LF after CR";
state->error_pos = (const char*) p;
@@ -7655,7 +8838,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_55: {
+ s_n_llhttp__internal__n_error_77: {
state->error = 0xd;
state->reason = "Invalid response status";
state->error_pos = (const char*) p;
@@ -7672,7 +8855,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_56: {
+ s_n_llhttp__internal__n_error_78: {
state->error = 0x9;
state->reason = "Expected space after version";
state->error_pos = (const char*) p;
@@ -7681,29 +8864,153 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_21: {
+ state->error = 0x15;
+ state->reason = "on_version_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_res_after_version;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_73: {
+ state->error = 0x21;
+ state->reason = "`on_version_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_6: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_5: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_72;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_72;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_3: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 9:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_4: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_5: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_major_1: {
+ switch (llhttp__internal__c_load_http_major(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_3;
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_4;
+ case 2:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_5;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_9: {
+ switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_invoke_load_http_major_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_store_http_minor_1: {
switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) {
default:
- goto s_n_llhttp__internal__n_res_http_end;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_9;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_57: {
- state->error = 0x9;
- state->reason = "Invalid minor version";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_7: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_79;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_79;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_58: {
- state->error = 0x9;
- state->reason = "Expected dot";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_8: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_80;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_80;
/* UNREACHABLE */;
abort();
}
@@ -7715,28 +9022,71 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_59: {
- state->error = 0x9;
- state->reason = "Invalid major version";
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_9: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_81;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_81;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_85: {
+ state->error = 0x8;
+ state->reason = "Expected HTTP/";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_62: {
- state->error = 0x8;
- state->reason = "Expected HTTP/";
+ s_n_llhttp__internal__n_pause_19: {
+ state->error = 0x15;
+ state->reason = "on_method_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_first_space_before_url;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_1: {
+ state->error = 0x20;
+ state->reason = "`on_method_complete` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_span_end_llhttp__on_method: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_method(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_method_complete;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_method_complete;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_update_type: {
switch (llhttp__internal__c_update_type(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_req_first_space_before_url;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_method;
}
/* UNREACHABLE */;
abort();
@@ -7749,7 +9099,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_60: {
+ s_n_llhttp__internal__n_error_82: {
state->error = 0x8;
state->reason = "Invalid word encountered";
state->error_pos = (const char*) p;
@@ -7758,23 +9108,32 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_type_1: {
- switch (llhttp__internal__c_update_type_1(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_res_http_major;
+ s_n_llhttp__internal__n_span_end_llhttp__on_method_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_method(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_type_1;
+ return s_error;
}
+ goto s_n_llhttp__internal__n_invoke_update_type_1;
/* UNREACHABLE */;
abort();
}
s_n_llhttp__internal__n_invoke_update_type_2: {
switch (llhttp__internal__c_update_type(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_start_req;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_method_1;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_8: {
+ s_n_llhttp__internal__n_pause_23: {
state->error = 0x15;
state->reason = "on_message_begin pause";
state->error_pos = (const char*) p;
@@ -7797,17 +9156,49 @@ static llparse_state_t llhttp__internal__run(
case 0:
goto s_n_llhttp__internal__n_invoke_load_type;
case 21:
- goto s_n_llhttp__internal__n_pause_8;
+ goto s_n_llhttp__internal__n_pause_23;
default:
goto s_n_llhttp__internal__n_error;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_finish: {
- switch (llhttp__internal__c_update_finish(state, p, endp)) {
+ s_n_llhttp__internal__n_pause_24: {
+ state->error = 0x15;
+ state->reason = "on_reset pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_finish;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_86: {
+ state->error = 0x1f;
+ state->reason = "`on_reset` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__on_reset: {
+ switch (llhttp__on_reset(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_update_finish;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_24;
+ default:
+ goto s_n_llhttp__internal__n_error_86;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_initial_message_completed: {
+ switch (llhttp__internal__c_load_initial_message_completed(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_reset;
default:
- goto s_n_llhttp__internal__n_invoke_llhttp__on_message_begin;
+ goto s_n_llhttp__internal__n_invoke_update_finish;
}
/* UNREACHABLE */;
abort();
@@ -8196,11 +9587,25 @@ enum llparse_state_e {
s_n_llhttp__internal__n_span_start_llhttp__on_body,
s_n_llhttp__internal__n_invoke_is_equal_content_length,
s_n_llhttp__internal__n_chunk_size_almost_done,
- s_n_llhttp__internal__n_chunk_parameters,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete,
+ s_n_llhttp__internal__n_chunk_extension_quoted_value_done,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1,
+ s_n_llhttp__internal__n_error_17,
+ s_n_llhttp__internal__n_chunk_extension_quoted_value,
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2,
+ s_n_llhttp__internal__n_error_19,
+ s_n_llhttp__internal__n_chunk_extension_value,
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value,
+ s_n_llhttp__internal__n_error_20,
+ s_n_llhttp__internal__n_chunk_extension_name,
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name,
+ s_n_llhttp__internal__n_chunk_extensions,
s_n_llhttp__internal__n_chunk_size_otherwise,
s_n_llhttp__internal__n_chunk_size,
s_n_llhttp__internal__n_chunk_size_digit,
- s_n_llhttp__internal__n_invoke_update_content_length,
+ s_n_llhttp__internal__n_invoke_update_content_length_1,
s_n_llhttp__internal__n_consume_content_length_1,
s_n_llhttp__internal__n_span_start_llhttp__on_body_1,
s_n_llhttp__internal__n_eof,
@@ -8208,7 +9613,7 @@ enum llparse_state_e {
s_n_llhttp__internal__n_invoke_llhttp__after_headers_complete,
s_n_llhttp__internal__n_headers_almost_done,
s_n_llhttp__internal__n_header_field_colon_discard_ws,
- s_n_llhttp__internal__n_error_14,
+ s_n_llhttp__internal__n_error_28,
s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete,
s_n_llhttp__internal__n_span_start_llhttp__on_header_value,
s_n_llhttp__internal__n_header_value_discard_lws,
@@ -8216,8 +9621,7 @@ enum llparse_state_e {
s_n_llhttp__internal__n_header_value_lws,
s_n_llhttp__internal__n_header_value_almost_done,
s_n_llhttp__internal__n_header_value_lenient,
- s_n_llhttp__internal__n_error_17,
- s_n_llhttp__internal__n_header_value_lenient_failed,
+ s_n_llhttp__internal__n_error_34,
s_n_llhttp__internal__n_header_value_otherwise,
s_n_llhttp__internal__n_header_value_connection_token,
s_n_llhttp__internal__n_header_value_connection_ws,
@@ -8225,12 +9629,12 @@ enum llparse_state_e {
s_n_llhttp__internal__n_header_value_connection_2,
s_n_llhttp__internal__n_header_value_connection_3,
s_n_llhttp__internal__n_header_value_connection,
- s_n_llhttp__internal__n_error_20,
- s_n_llhttp__internal__n_error_21,
+ s_n_llhttp__internal__n_error_36,
+ s_n_llhttp__internal__n_error_37,
s_n_llhttp__internal__n_header_value_content_length_ws,
s_n_llhttp__internal__n_header_value_content_length,
- s_n_llhttp__internal__n_error_23,
- s_n_llhttp__internal__n_error_22,
+ s_n_llhttp__internal__n_error_39,
+ s_n_llhttp__internal__n_error_38,
s_n_llhttp__internal__n_header_value_te_token_ows,
s_n_llhttp__internal__n_header_value,
s_n_llhttp__internal__n_header_value_te_token,
@@ -8252,14 +9656,22 @@ enum llparse_state_e {
s_n_llhttp__internal__n_header_field,
s_n_llhttp__internal__n_span_start_llhttp__on_header_field,
s_n_llhttp__internal__n_header_field_start,
+ s_n_llhttp__internal__n_headers_start,
s_n_llhttp__internal__n_url_skip_to_http09,
s_n_llhttp__internal__n_url_skip_lf_to_http09,
s_n_llhttp__internal__n_req_pri_upgrade,
s_n_llhttp__internal__n_req_http_complete_1,
s_n_llhttp__internal__n_req_http_complete,
+ s_n_llhttp__internal__n_invoke_load_method_1,
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete,
+ s_n_llhttp__internal__n_error_44,
+ s_n_llhttp__internal__n_error_49,
s_n_llhttp__internal__n_req_http_minor,
+ s_n_llhttp__internal__n_error_50,
s_n_llhttp__internal__n_req_http_dot,
+ s_n_llhttp__internal__n_error_51,
s_n_llhttp__internal__n_req_http_major,
+ s_n_llhttp__internal__n_span_start_llhttp__on_version,
s_n_llhttp__internal__n_req_http_start_1,
s_n_llhttp__internal__n_req_http_start_2,
s_n_llhttp__internal__n_req_http_start_3,
@@ -8284,76 +9696,78 @@ enum llparse_state_e {
s_n_llhttp__internal__n_span_start_llhttp__on_url,
s_n_llhttp__internal__n_req_spaces_before_url,
s_n_llhttp__internal__n_req_first_space_before_url,
- s_n_llhttp__internal__n_start_req_2,
- s_n_llhttp__internal__n_start_req_3,
- s_n_llhttp__internal__n_start_req_1,
- s_n_llhttp__internal__n_start_req_4,
- s_n_llhttp__internal__n_start_req_6,
- s_n_llhttp__internal__n_start_req_8,
- s_n_llhttp__internal__n_start_req_9,
- s_n_llhttp__internal__n_start_req_7,
- s_n_llhttp__internal__n_start_req_5,
- s_n_llhttp__internal__n_start_req_12,
- s_n_llhttp__internal__n_start_req_13,
- s_n_llhttp__internal__n_start_req_11,
- s_n_llhttp__internal__n_start_req_10,
- s_n_llhttp__internal__n_start_req_14,
- s_n_llhttp__internal__n_start_req_17,
- s_n_llhttp__internal__n_start_req_16,
- s_n_llhttp__internal__n_start_req_15,
- s_n_llhttp__internal__n_start_req_18,
- s_n_llhttp__internal__n_start_req_20,
- s_n_llhttp__internal__n_start_req_21,
- s_n_llhttp__internal__n_start_req_19,
- s_n_llhttp__internal__n_start_req_23,
- s_n_llhttp__internal__n_start_req_24,
- s_n_llhttp__internal__n_start_req_26,
- s_n_llhttp__internal__n_start_req_28,
- s_n_llhttp__internal__n_start_req_29,
- s_n_llhttp__internal__n_start_req_27,
- s_n_llhttp__internal__n_start_req_25,
- s_n_llhttp__internal__n_start_req_30,
- s_n_llhttp__internal__n_start_req_22,
- s_n_llhttp__internal__n_start_req_31,
- s_n_llhttp__internal__n_start_req_32,
- s_n_llhttp__internal__n_start_req_35,
- s_n_llhttp__internal__n_start_req_36,
- s_n_llhttp__internal__n_start_req_34,
- s_n_llhttp__internal__n_start_req_37,
- s_n_llhttp__internal__n_start_req_38,
- s_n_llhttp__internal__n_start_req_42,
- s_n_llhttp__internal__n_start_req_43,
- s_n_llhttp__internal__n_start_req_41,
- s_n_llhttp__internal__n_start_req_40,
- s_n_llhttp__internal__n_start_req_39,
- s_n_llhttp__internal__n_start_req_45,
- s_n_llhttp__internal__n_start_req_44,
- s_n_llhttp__internal__n_start_req_33,
- s_n_llhttp__internal__n_start_req_48,
- s_n_llhttp__internal__n_start_req_49,
- s_n_llhttp__internal__n_start_req_50,
- s_n_llhttp__internal__n_start_req_51,
- s_n_llhttp__internal__n_start_req_47,
- s_n_llhttp__internal__n_start_req_46,
- s_n_llhttp__internal__n_start_req_54,
- s_n_llhttp__internal__n_start_req_56,
- s_n_llhttp__internal__n_start_req_57,
- s_n_llhttp__internal__n_start_req_55,
- s_n_llhttp__internal__n_start_req_53,
- s_n_llhttp__internal__n_start_req_58,
- s_n_llhttp__internal__n_start_req_59,
- s_n_llhttp__internal__n_start_req_52,
- s_n_llhttp__internal__n_start_req_61,
- s_n_llhttp__internal__n_start_req_62,
- s_n_llhttp__internal__n_start_req_60,
- s_n_llhttp__internal__n_start_req_65,
- s_n_llhttp__internal__n_start_req_67,
- s_n_llhttp__internal__n_start_req_68,
- s_n_llhttp__internal__n_start_req_66,
- s_n_llhttp__internal__n_start_req_69,
- s_n_llhttp__internal__n_start_req_64,
- s_n_llhttp__internal__n_start_req_63,
- s_n_llhttp__internal__n_start_req,
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1,
+ s_n_llhttp__internal__n_after_start_req_2,
+ s_n_llhttp__internal__n_after_start_req_3,
+ s_n_llhttp__internal__n_after_start_req_1,
+ s_n_llhttp__internal__n_after_start_req_4,
+ s_n_llhttp__internal__n_after_start_req_6,
+ s_n_llhttp__internal__n_after_start_req_8,
+ s_n_llhttp__internal__n_after_start_req_9,
+ s_n_llhttp__internal__n_after_start_req_7,
+ s_n_llhttp__internal__n_after_start_req_5,
+ s_n_llhttp__internal__n_after_start_req_12,
+ s_n_llhttp__internal__n_after_start_req_13,
+ s_n_llhttp__internal__n_after_start_req_11,
+ s_n_llhttp__internal__n_after_start_req_10,
+ s_n_llhttp__internal__n_after_start_req_14,
+ s_n_llhttp__internal__n_after_start_req_17,
+ s_n_llhttp__internal__n_after_start_req_16,
+ s_n_llhttp__internal__n_after_start_req_15,
+ s_n_llhttp__internal__n_after_start_req_18,
+ s_n_llhttp__internal__n_after_start_req_20,
+ s_n_llhttp__internal__n_after_start_req_21,
+ s_n_llhttp__internal__n_after_start_req_19,
+ s_n_llhttp__internal__n_after_start_req_23,
+ s_n_llhttp__internal__n_after_start_req_24,
+ s_n_llhttp__internal__n_after_start_req_26,
+ s_n_llhttp__internal__n_after_start_req_28,
+ s_n_llhttp__internal__n_after_start_req_29,
+ s_n_llhttp__internal__n_after_start_req_27,
+ s_n_llhttp__internal__n_after_start_req_25,
+ s_n_llhttp__internal__n_after_start_req_30,
+ s_n_llhttp__internal__n_after_start_req_22,
+ s_n_llhttp__internal__n_after_start_req_31,
+ s_n_llhttp__internal__n_after_start_req_32,
+ s_n_llhttp__internal__n_after_start_req_35,
+ s_n_llhttp__internal__n_after_start_req_36,
+ s_n_llhttp__internal__n_after_start_req_34,
+ s_n_llhttp__internal__n_after_start_req_37,
+ s_n_llhttp__internal__n_after_start_req_38,
+ s_n_llhttp__internal__n_after_start_req_42,
+ s_n_llhttp__internal__n_after_start_req_43,
+ s_n_llhttp__internal__n_after_start_req_41,
+ s_n_llhttp__internal__n_after_start_req_40,
+ s_n_llhttp__internal__n_after_start_req_39,
+ s_n_llhttp__internal__n_after_start_req_45,
+ s_n_llhttp__internal__n_after_start_req_44,
+ s_n_llhttp__internal__n_after_start_req_33,
+ s_n_llhttp__internal__n_after_start_req_48,
+ s_n_llhttp__internal__n_after_start_req_49,
+ s_n_llhttp__internal__n_after_start_req_50,
+ s_n_llhttp__internal__n_after_start_req_51,
+ s_n_llhttp__internal__n_after_start_req_47,
+ s_n_llhttp__internal__n_after_start_req_46,
+ s_n_llhttp__internal__n_after_start_req_54,
+ s_n_llhttp__internal__n_after_start_req_56,
+ s_n_llhttp__internal__n_after_start_req_57,
+ s_n_llhttp__internal__n_after_start_req_55,
+ s_n_llhttp__internal__n_after_start_req_53,
+ s_n_llhttp__internal__n_after_start_req_58,
+ s_n_llhttp__internal__n_after_start_req_59,
+ s_n_llhttp__internal__n_after_start_req_52,
+ s_n_llhttp__internal__n_after_start_req_61,
+ s_n_llhttp__internal__n_after_start_req_62,
+ s_n_llhttp__internal__n_after_start_req_60,
+ s_n_llhttp__internal__n_after_start_req_65,
+ s_n_llhttp__internal__n_after_start_req_67,
+ s_n_llhttp__internal__n_after_start_req_68,
+ s_n_llhttp__internal__n_after_start_req_66,
+ s_n_llhttp__internal__n_after_start_req_69,
+ s_n_llhttp__internal__n_after_start_req_64,
+ s_n_llhttp__internal__n_after_start_req_63,
+ s_n_llhttp__internal__n_after_start_req,
+ s_n_llhttp__internal__n_span_start_llhttp__on_method_1,
s_n_llhttp__internal__n_invoke_llhttp__on_status_complete,
s_n_llhttp__internal__n_res_line_almost_done,
s_n_llhttp__internal__n_res_status,
@@ -8361,25 +9775,43 @@ enum llparse_state_e {
s_n_llhttp__internal__n_res_status_start,
s_n_llhttp__internal__n_res_status_code_otherwise,
s_n_llhttp__internal__n_res_status_code,
- s_n_llhttp__internal__n_res_http_end,
+ s_n_llhttp__internal__n_res_after_version,
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1,
+ s_n_llhttp__internal__n_error_66,
+ s_n_llhttp__internal__n_error_72,
s_n_llhttp__internal__n_res_http_minor,
+ s_n_llhttp__internal__n_error_73,
s_n_llhttp__internal__n_res_http_dot,
+ s_n_llhttp__internal__n_error_74,
s_n_llhttp__internal__n_res_http_major,
+ s_n_llhttp__internal__n_span_start_llhttp__on_version_1,
s_n_llhttp__internal__n_start_res,
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete,
s_n_llhttp__internal__n_req_or_res_method_2,
+ s_n_llhttp__internal__n_invoke_update_type_1,
s_n_llhttp__internal__n_req_or_res_method_3,
s_n_llhttp__internal__n_req_or_res_method_1,
s_n_llhttp__internal__n_req_or_res_method,
+ s_n_llhttp__internal__n_span_start_llhttp__on_method,
s_n_llhttp__internal__n_start_req_or_res,
s_n_llhttp__internal__n_invoke_load_type,
+ s_n_llhttp__internal__n_invoke_update_finish,
s_n_llhttp__internal__n_start,
};
typedef enum llparse_state_e llparse_state_t;
+int llhttp__on_method(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__on_url(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__on_version(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__on_header_field(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
@@ -8392,10 +9824,29 @@ int llhttp__on_body(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__on_chunk_extension_name(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
+int llhttp__on_chunk_extension_value(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__on_status(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__internal__c_load_initial_message_completed(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return state->initial_message_completed;
+}
+
+int llhttp__on_reset(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__internal__c_update_finish(
llhttp__internal_t* state,
const unsigned char* p,
@@ -8424,6 +9875,10 @@ int llhttp__internal__c_store_method(
return 0;
}
+int llhttp__on_method_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__internal__c_is_equal_method(
llhttp__internal_t* state,
const unsigned char* p,
@@ -8451,6 +9906,13 @@ int llhttp__on_url_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
+int llhttp__internal__c_test_lenient_flags(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return (state->lenient_flags & 1) == 1;
+}
+
int llhttp__internal__c_test_flags(
llhttp__internal_t* state,
const unsigned char* p,
@@ -8477,7 +9939,23 @@ int llhttp__after_message_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
-int llhttp__internal__c_update_finish_1(
+int llhttp__internal__c_update_content_length(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ state->content_length = 0;
+ return 0;
+}
+
+int llhttp__internal__c_update_initial_message_completed(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ state->initial_message_completed = 1;
+ return 0;
+}
+
+int llhttp__internal__c_update_finish_1(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8485,7 +9963,7 @@ int llhttp__internal__c_update_finish_1(
return 0;
}
-int llhttp__internal__c_test_lenient_flags(
+int llhttp__internal__c_test_lenient_flags_1(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8499,7 +9977,7 @@ int llhttp__internal__c_test_flags_1(
return (state->flags & 544) == 544;
}
-int llhttp__internal__c_test_lenient_flags_1(
+int llhttp__internal__c_test_lenient_flags_2(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8518,14 +9996,6 @@ int llhttp__after_headers_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
-int llhttp__internal__c_update_content_length(
- llhttp__internal_t* state,
- const unsigned char* p,
- const unsigned char* endp) {
- state->content_length = 0;
- return 0;
-}
-
int llhttp__internal__c_mul_add_content_length(
llhttp__internal_t* state,
const unsigned char* p,
@@ -8571,6 +10041,14 @@ int llhttp__internal__c_or_flags(
return 0;
}
+int llhttp__on_chunk_extension_name_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
+int llhttp__on_chunk_extension_value_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
int llhttp__internal__c_update_finish_3(
llhttp__internal_t* state,
const unsigned char* p,
@@ -8604,13 +10082,6 @@ int llhttp__internal__c_store_header_state(
return 0;
}
-int llhttp__internal__c_test_lenient_flags_2(
- llhttp__internal_t* state,
- const unsigned char* p,
- const unsigned char* endp) {
- return (state->lenient_flags & 1) == 1;
-}
-
int llhttp__on_header_field_complete(
llhttp__internal_t* s, const unsigned char* p,
const unsigned char* endp);
@@ -8666,7 +10137,7 @@ int llhttp__internal__c_or_flags_6(
return 0;
}
-int llhttp__internal__c_update_header_state_2(
+int llhttp__internal__c_update_header_state_3(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8674,7 +10145,7 @@ int llhttp__internal__c_update_header_state_2(
return 0;
}
-int llhttp__internal__c_update_header_state_4(
+int llhttp__internal__c_update_header_state_1(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8682,7 +10153,7 @@ int llhttp__internal__c_update_header_state_4(
return 0;
}
-int llhttp__internal__c_update_header_state_5(
+int llhttp__internal__c_update_header_state_6(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8690,7 +10161,7 @@ int llhttp__internal__c_update_header_state_5(
return 0;
}
-int llhttp__internal__c_update_header_state_6(
+int llhttp__internal__c_update_header_state_7(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8746,7 +10217,7 @@ int llhttp__internal__c_test_flags_3(
return (state->flags & 8) == 8;
}
-int llhttp__internal__c_test_lenient_flags_4(
+int llhttp__internal__c_test_lenient_flags_6(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8769,7 +10240,7 @@ int llhttp__internal__c_and_flags(
return 0;
}
-int llhttp__internal__c_update_header_state_7(
+int llhttp__internal__c_update_header_state_8(
llhttp__internal_t* state,
const unsigned char* p,
const unsigned char* endp) {
@@ -8810,6 +10281,31 @@ int llhttp__internal__c_store_http_minor(
return 0;
}
+int llhttp__internal__c_test_lenient_flags_8(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return (state->lenient_flags & 16) == 16;
+}
+
+int llhttp__on_version_complete(
+ llhttp__internal_t* s, const unsigned char* p,
+ const unsigned char* endp);
+
+int llhttp__internal__c_load_http_major(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return state->http_major;
+}
+
+int llhttp__internal__c_load_http_minor(
+ llhttp__internal_t* state,
+ const unsigned char* p,
+ const unsigned char* endp) {
+ return state->http_minor;
+}
+
int llhttp__internal__c_update_status_code(
llhttp__internal_t* state,
const unsigned char* p,
@@ -8895,7 +10391,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_llhttp__after_message_complete: {
switch (llhttp__after_message_complete(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_update_finish_2;
+ goto s_n_llhttp__internal__n_invoke_update_content_length;
default:
goto s_n_llhttp__internal__n_invoke_update_finish_1;
}
@@ -8929,9 +10425,9 @@ static llparse_state_t llhttp__internal__run(
case 0:
goto s_n_llhttp__internal__n_invoke_is_equal_upgrade;
case 21:
- goto s_n_llhttp__internal__n_pause_5;
+ goto s_n_llhttp__internal__n_pause_11;
default:
- goto s_n_llhttp__internal__n_error_10;
+ goto s_n_llhttp__internal__n_error_24;
}
/* UNREACHABLE */;
abort();
@@ -9006,18 +10502,101 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_chunk_parameters:
- s_n_llhttp__internal__n_chunk_parameters: {
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete: {
+ switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_5;
+ default:
+ goto s_n_llhttp__internal__n_error_11;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1: {
+ switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_extensions;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_6;
+ default:
+ goto s_n_llhttp__internal__n_error_12;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete: {
+ switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_7;
+ default:
+ goto s_n_llhttp__internal__n_error_14;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_quoted_value_done:
+ s_n_llhttp__internal__n_chunk_extension_quoted_value_done: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_extension_quoted_value_done;
+ }
+ switch (*p) {
+ case 13: {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ }
+ case ';': {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_extensions;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_error_16;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1: {
+ switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_extension_quoted_value_done;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_8;
+ default:
+ goto s_n_llhttp__internal__n_error_15;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_17:
+ s_n_llhttp__internal__n_error_17: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions quoted value";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_quoted_value:
+ s_n_llhttp__internal__n_chunk_extension_quoted_value: {
static uint8_t lookup_table[] = {
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -9027,19 +10606,184 @@ static llparse_state_t llhttp__internal__run(
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
};
if (p == endp) {
- return s_n_llhttp__internal__n_chunk_parameters;
+ return s_n_llhttp__internal__n_chunk_extension_quoted_value;
}
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_chunk_parameters;
+ goto s_n_llhttp__internal__n_chunk_extension_quoted_value;
}
case 2: {
p++;
- goto s_n_llhttp__internal__n_chunk_size_almost_done;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_1;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_2;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2:
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2: {
+ switch (llhttp__on_chunk_extension_value_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_chunk_size_otherwise;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_9;
+ default:
+ goto s_n_llhttp__internal__n_error_18;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_19:
+ s_n_llhttp__internal__n_error_19: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions value";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_value:
+ s_n_llhttp__internal__n_chunk_extension_value: {
+ static uint8_t lookup_table[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2, 3, 2, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 2, 0,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 4, 0, 0, 0, 0,
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 2, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ };
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_extension_value;
+ }
+ switch (lookup_table[(uint8_t) *p]) {
+ case 1: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value;
+ }
+ case 2: {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_extension_value;
+ }
+ case 3: {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_extension_quoted_value;
+ }
+ case 4: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_3;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_4;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value:
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_chunk_extension_value;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_20:
+ s_n_llhttp__internal__n_error_20: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions name";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extension_name:
+ s_n_llhttp__internal__n_chunk_extension_name: {
+ static uint8_t lookup_table[] = {
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 2, 0, 2, 2, 2, 2, 2, 0, 0, 2, 2, 0, 2, 2, 0,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 3, 0, 4, 0, 0,
+ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 2, 0, 2, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
+ };
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_extension_name;
+ }
+ switch (lookup_table[(uint8_t) *p]) {
+ case 1: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name;
+ }
+ case 2: {
+ p++;
+ goto s_n_llhttp__internal__n_chunk_extension_name;
+ }
+ case 3: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_1;
+ }
+ case 4: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_2;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_3;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name:
+ s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_chunk_extension_name;
+ goto s_n_llhttp__internal__n_chunk_extension_name;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_chunk_extensions:
+ s_n_llhttp__internal__n_chunk_extensions: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_chunk_extensions;
+ }
+ switch (*p) {
+ case 13: {
+ p++;
+ goto s_n_llhttp__internal__n_error_9;
+ }
+ case ' ': {
+ p++;
+ goto s_n_llhttp__internal__n_error_10;
}
default: {
- goto s_n_llhttp__internal__n_error_6;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_name;
}
}
/* UNREACHABLE */;
@@ -9055,16 +10799,12 @@ static llparse_state_t llhttp__internal__run(
p++;
goto s_n_llhttp__internal__n_chunk_size_almost_done;
}
- case ' ': {
- p++;
- goto s_n_llhttp__internal__n_chunk_parameters;
- }
case ';': {
p++;
- goto s_n_llhttp__internal__n_chunk_parameters;
+ goto s_n_llhttp__internal__n_chunk_extensions;
}
default: {
- goto s_n_llhttp__internal__n_error_7;
+ goto s_n_llhttp__internal__n_error_21;
}
}
/* UNREACHABLE */;
@@ -9310,14 +11050,14 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_mul_add_content_length;
}
default: {
- goto s_n_llhttp__internal__n_error_9;
+ goto s_n_llhttp__internal__n_error_23;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_invoke_update_content_length:
- s_n_llhttp__internal__n_invoke_update_content_length: {
+ case s_n_llhttp__internal__n_invoke_update_content_length_1:
+ s_n_llhttp__internal__n_invoke_update_content_length_1: {
switch (llhttp__internal__c_update_content_length(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_chunk_size_digit;
@@ -9381,13 +11121,13 @@ static llparse_state_t llhttp__internal__run(
case 1:
goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1;
case 2:
- goto s_n_llhttp__internal__n_invoke_update_content_length;
+ goto s_n_llhttp__internal__n_invoke_update_content_length_1;
case 3:
goto s_n_llhttp__internal__n_span_start_llhttp__on_body_1;
case 4:
goto s_n_llhttp__internal__n_invoke_update_finish_3;
case 5:
- goto s_n_llhttp__internal__n_error_11;
+ goto s_n_llhttp__internal__n_error_25;
default:
goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete;
}
@@ -9421,8 +11161,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_14:
- s_n_llhttp__internal__n_error_14: {
+ case s_n_llhttp__internal__n_error_28:
+ s_n_llhttp__internal__n_error_28: {
state->error = 0xa;
state->reason = "Invalid header field char";
state->error_pos = (const char*) p;
@@ -9434,8 +11174,12 @@ static llparse_state_t llhttp__internal__run(
case s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete:
s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete: {
switch (llhttp__on_header_value_complete(state, p, endp)) {
- default:
+ case 0:
goto s_n_llhttp__internal__n_header_field_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_14;
+ default:
+ goto s_n_llhttp__internal__n_error_31;
}
/* UNREACHABLE */;
abort();
@@ -9489,13 +11233,13 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case 9: {
- goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_3;
}
case ' ': {
- goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_3;
}
default: {
- goto s_n_llhttp__internal__n_invoke_load_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_4;
}
}
/* UNREACHABLE */;
@@ -9512,7 +11256,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_value_lws;
}
default: {
- goto s_n_llhttp__internal__n_error_16;
+ goto s_n_llhttp__internal__n_error_33;
}
}
/* UNREACHABLE */;
@@ -9538,32 +11282,16 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_17:
- s_n_llhttp__internal__n_error_17: {
- state->error = 0x19;
- state->reason = "Missing expected CR after header value";
+ case s_n_llhttp__internal__n_error_34:
+ s_n_llhttp__internal__n_error_34: {
+ state->error = 0xa;
+ state->reason = "Invalid header value char";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_header_value_lenient_failed:
- s_n_llhttp__internal__n_header_value_lenient_failed: {
- if (p == endp) {
- return s_n_llhttp__internal__n_header_value_lenient_failed;
- }
- switch (*p) {
- case 10: {
- goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2;
- }
- default: {
- goto s_n_llhttp__internal__n_error_18;
- }
- }
- /* UNREACHABLE */;
- abort();
- }
case s_n_llhttp__internal__n_header_value_otherwise:
s_n_llhttp__internal__n_header_value_otherwise: {
if (p == endp) {
@@ -9574,7 +11302,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_1;
}
default: {
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_3;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_5;
}
}
/* UNREACHABLE */;
@@ -9637,10 +11365,10 @@ static llparse_state_t llhttp__internal__run(
}
case ',': {
p++;
- goto s_n_llhttp__internal__n_invoke_load_header_state_4;
+ goto s_n_llhttp__internal__n_invoke_load_header_state_5;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_4;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_5;
}
}
/* UNREACHABLE */;
@@ -9658,7 +11386,7 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_header_state_2;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_3;
}
case kMatchPause: {
return s_n_llhttp__internal__n_header_value_connection_1;
@@ -9682,7 +11410,7 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_header_state_5;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_6;
}
case kMatchPause: {
return s_n_llhttp__internal__n_header_value_connection_2;
@@ -9706,7 +11434,7 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_header_state_6;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_7;
}
case kMatchPause: {
return s_n_llhttp__internal__n_header_value_connection_3;
@@ -9751,8 +11479,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_20:
- s_n_llhttp__internal__n_error_20: {
+ case s_n_llhttp__internal__n_error_36:
+ s_n_llhttp__internal__n_error_36: {
state->error = 0xb;
state->reason = "Content-Length overflow";
state->error_pos = (const char*) p;
@@ -9761,8 +11489,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_21:
- s_n_llhttp__internal__n_error_21: {
+ case s_n_llhttp__internal__n_error_37:
+ s_n_llhttp__internal__n_error_37: {
state->error = 0xb;
state->reason = "Invalid character in Content-Length";
state->error_pos = (const char*) p;
@@ -9857,8 +11585,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_23:
- s_n_llhttp__internal__n_error_23: {
+ case s_n_llhttp__internal__n_error_39:
+ s_n_llhttp__internal__n_error_39: {
state->error = 0xf;
state->reason = "Invalid `Transfer-Encoding` header value";
state->error_pos = (const char*) p;
@@ -9867,8 +11595,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_error_22:
- s_n_llhttp__internal__n_error_22: {
+ case s_n_llhttp__internal__n_error_38:
+ s_n_llhttp__internal__n_error_38: {
state->error = 0xf;
state->reason = "Invalid `Transfer-Encoding` header value";
state->error_pos = (const char*) p;
@@ -9990,7 +11718,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_value_te_token_ows;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_8;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_9;
}
}
/* UNREACHABLE */;
@@ -10003,10 +11731,10 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case 10: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_7;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_8;
}
case 13: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_7;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_8;
}
case ' ': {
p++;
@@ -10069,7 +11797,7 @@ static llparse_state_t llhttp__internal__run(
}
case 10: {
p++;
- goto s_n_llhttp__internal__n_header_value_discard_lws;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_4;
}
case 13: {
p++;
@@ -10089,8 +11817,12 @@ static llparse_state_t llhttp__internal__run(
case s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete:
s_n_llhttp__internal__n_invoke_llhttp__on_header_field_complete: {
switch (llhttp__on_header_field_complete(state, p, endp)) {
- default:
+ case 0:
goto s_n_llhttp__internal__n_header_value_discard_ws;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_15;
+ default:
+ goto s_n_llhttp__internal__n_error_29;
}
/* UNREACHABLE */;
abort();
@@ -10105,7 +11837,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_2;
}
default: {
- goto s_n_llhttp__internal__n_error_24;
+ goto s_n_llhttp__internal__n_error_40;
}
}
/* UNREACHABLE */;
@@ -10189,13 +11921,13 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case ' ': {
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_2;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_3;
}
case ':': {
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_9;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_10;
}
}
/* UNREACHABLE */;
@@ -10220,7 +11952,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10245,7 +11977,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_4;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10266,7 +11998,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_field_4;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10290,7 +12022,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_1;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10315,7 +12047,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_5;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10340,7 +12072,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_6;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10365,7 +12097,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_header_field_7;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10394,7 +12126,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_header_field_7;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_header_state_10;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_11;
}
}
/* UNREACHABLE */;
@@ -10431,6 +12163,23 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_headers_start:
+ s_n_llhttp__internal__n_headers_start: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_headers_start;
+ }
+ switch (*p) {
+ case ' ': {
+ p++;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags;
+ }
+ default: {
+ goto s_n_llhttp__internal__n_header_field_start;
+ }
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_url_skip_to_http09:
s_n_llhttp__internal__n_url_skip_to_http09: {
if (p == endp) {
@@ -10459,7 +12208,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_url_skip_lf_to_http09;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_25;
+ goto s_n_llhttp__internal__n_error_41;
}
}
/* UNREACHABLE */;
@@ -10477,13 +12226,13 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_error_28;
+ goto s_n_llhttp__internal__n_error_47;
}
case kMatchPause: {
return s_n_llhttp__internal__n_req_pri_upgrade;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_29;
+ goto s_n_llhttp__internal__n_error_48;
}
}
/* UNREACHABLE */;
@@ -10497,10 +12246,10 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 10: {
p++;
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_headers_start;
}
default: {
- goto s_n_llhttp__internal__n_error_27;
+ goto s_n_llhttp__internal__n_error_46;
}
}
/* UNREACHABLE */;
@@ -10514,19 +12263,63 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 10: {
p++;
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_headers_start;
}
case 13: {
p++;
goto s_n_llhttp__internal__n_req_http_complete_1;
}
default: {
- goto s_n_llhttp__internal__n_error_27;
+ goto s_n_llhttp__internal__n_error_46;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_load_method_1:
+ s_n_llhttp__internal__n_invoke_load_method_1: {
+ switch (llhttp__internal__c_load_method(state, p, endp)) {
+ case 34:
+ goto s_n_llhttp__internal__n_req_pri_upgrade;
+ default:
+ goto s_n_llhttp__internal__n_req_http_complete;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_invoke_llhttp__on_version_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete: {
+ switch (llhttp__on_version_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_load_method_1;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_17;
+ default:
+ goto s_n_llhttp__internal__n_error_45;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_44:
+ s_n_llhttp__internal__n_error_44: {
+ state->error = 0x9;
+ state->reason = "Invalid HTTP version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_49:
+ s_n_llhttp__internal__n_error_49: {
+ state->error = 0x9;
+ state->reason = "Invalid minor version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_minor:
s_n_llhttp__internal__n_req_http_minor: {
if (p == endp) {
@@ -10584,12 +12377,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_minor;
}
default: {
- goto s_n_llhttp__internal__n_error_30;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_2;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_50:
+ s_n_llhttp__internal__n_error_50: {
+ state->error = 0x9;
+ state->reason = "Expected dot";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_dot:
s_n_llhttp__internal__n_req_http_dot: {
if (p == endp) {
@@ -10601,12 +12404,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_http_minor;
}
default: {
- goto s_n_llhttp__internal__n_error_31;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_3;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_51:
+ s_n_llhttp__internal__n_error_51: {
+ state->error = 0x9;
+ state->reason = "Invalid major version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_major:
s_n_llhttp__internal__n_req_http_major: {
if (p == endp) {
@@ -10664,12 +12477,23 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_major;
}
default: {
- goto s_n_llhttp__internal__n_error_32;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_4;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_version:
+ s_n_llhttp__internal__n_span_start_llhttp__on_version: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_version;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_version;
+ goto s_n_llhttp__internal__n_req_http_major;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_http_start_1:
s_n_llhttp__internal__n_req_http_start_1: {
llparse_match_t match_seq;
@@ -10688,7 +12512,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_http_start_1;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_35;
+ goto s_n_llhttp__internal__n_error_54;
}
}
/* UNREACHABLE */;
@@ -10712,7 +12536,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_http_start_2;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_35;
+ goto s_n_llhttp__internal__n_error_54;
}
}
/* UNREACHABLE */;
@@ -10736,7 +12560,7 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_http_start_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_35;
+ goto s_n_llhttp__internal__n_error_54;
}
}
/* UNREACHABLE */;
@@ -10765,7 +12589,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_http_start_3;
}
default: {
- goto s_n_llhttp__internal__n_error_35;
+ goto s_n_llhttp__internal__n_error_54;
}
}
/* UNREACHABLE */;
@@ -10819,7 +12643,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_span_end_llhttp__on_url_8;
}
default: {
- goto s_n_llhttp__internal__n_error_36;
+ goto s_n_llhttp__internal__n_error_55;
}
}
/* UNREACHABLE */;
@@ -10876,7 +12700,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_span_end_stub_query_3;
}
default: {
- goto s_n_llhttp__internal__n_error_37;
+ goto s_n_llhttp__internal__n_error_56;
}
}
/* UNREACHABLE */;
@@ -10906,7 +12730,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_query;
}
default: {
- goto s_n_llhttp__internal__n_error_38;
+ goto s_n_llhttp__internal__n_error_57;
}
}
/* UNREACHABLE */;
@@ -11047,10 +12871,10 @@ static llparse_state_t llhttp__internal__run(
}
case 7: {
p++;
- goto s_n_llhttp__internal__n_error_39;
+ goto s_n_llhttp__internal__n_error_58;
}
default: {
- goto s_n_llhttp__internal__n_error_40;
+ goto s_n_llhttp__internal__n_error_59;
}
}
/* UNREACHABLE */;
@@ -11105,7 +12929,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_server_with_at;
}
default: {
- goto s_n_llhttp__internal__n_error_41;
+ goto s_n_llhttp__internal__n_error_60;
}
}
/* UNREACHABLE */;
@@ -11122,7 +12946,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_server;
}
default: {
- goto s_n_llhttp__internal__n_error_43;
+ goto s_n_llhttp__internal__n_error_62;
}
}
/* UNREACHABLE */;
@@ -11136,22 +12960,22 @@ static llparse_state_t llhttp__internal__run(
switch (*p) {
case 10: {
p++;
- goto s_n_llhttp__internal__n_error_42;
+ goto s_n_llhttp__internal__n_error_61;
}
case 13: {
p++;
- goto s_n_llhttp__internal__n_error_42;
+ goto s_n_llhttp__internal__n_error_61;
}
case ' ': {
p++;
- goto s_n_llhttp__internal__n_error_42;
+ goto s_n_llhttp__internal__n_error_61;
}
case '/': {
p++;
goto s_n_llhttp__internal__n_url_schema_delim_1;
}
default: {
- goto s_n_llhttp__internal__n_error_43;
+ goto s_n_llhttp__internal__n_error_62;
}
}
/* UNREACHABLE */;
@@ -11193,7 +13017,7 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_42;
+ goto s_n_llhttp__internal__n_error_61;
}
case 2: {
goto s_n_llhttp__internal__n_span_end_stub_schema;
@@ -11203,7 +13027,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_schema;
}
default: {
- goto s_n_llhttp__internal__n_error_44;
+ goto s_n_llhttp__internal__n_error_63;
}
}
/* UNREACHABLE */;
@@ -11235,7 +13059,7 @@ static llparse_state_t llhttp__internal__run(
switch (lookup_table[(uint8_t) *p]) {
case 1: {
p++;
- goto s_n_llhttp__internal__n_error_42;
+ goto s_n_llhttp__internal__n_error_61;
}
case 2: {
goto s_n_llhttp__internal__n_span_start_stub_path_2;
@@ -11244,7 +13068,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_url_schema;
}
default: {
- goto s_n_llhttp__internal__n_error_45;
+ goto s_n_llhttp__internal__n_error_64;
}
}
/* UNREACHABLE */;
@@ -11300,16 +13124,29 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_spaces_before_url;
}
default: {
- goto s_n_llhttp__internal__n_error_46;
+ goto s_n_llhttp__internal__n_error_65;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_2:
- s_n_llhttp__internal__n_start_req_2: {
+ case s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1: {
+ switch (llhttp__on_method_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_req_first_space_before_url;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_22;
+ default:
+ goto s_n_llhttp__internal__n_error_76;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_after_start_req_2:
+ s_n_llhttp__internal__n_after_start_req_2: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_2;
+ return s_n_llhttp__internal__n_after_start_req_2;
}
switch (*p) {
case 'L': {
@@ -11318,18 +13155,18 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_3:
- s_n_llhttp__internal__n_start_req_3: {
+ case s_n_llhttp__internal__n_after_start_req_3:
+ s_n_llhttp__internal__n_after_start_req_3: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_3;
+ return s_n_llhttp__internal__n_after_start_req_3;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob19, 6);
p = match_seq.current;
@@ -11340,42 +13177,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_3;
+ return s_n_llhttp__internal__n_after_start_req_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_1:
- s_n_llhttp__internal__n_start_req_1: {
+ case s_n_llhttp__internal__n_after_start_req_1:
+ s_n_llhttp__internal__n_after_start_req_1: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_1;
+ return s_n_llhttp__internal__n_after_start_req_1;
}
switch (*p) {
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_2;
+ goto s_n_llhttp__internal__n_after_start_req_2;
}
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_3;
+ goto s_n_llhttp__internal__n_after_start_req_3;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_4:
- s_n_llhttp__internal__n_start_req_4: {
+ case s_n_llhttp__internal__n_after_start_req_4:
+ s_n_llhttp__internal__n_after_start_req_4: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_4;
+ return s_n_llhttp__internal__n_after_start_req_4;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob20, 3);
p = match_seq.current;
@@ -11386,21 +13223,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_4;
+ return s_n_llhttp__internal__n_after_start_req_4;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_6:
- s_n_llhttp__internal__n_start_req_6: {
+ case s_n_llhttp__internal__n_after_start_req_6:
+ s_n_llhttp__internal__n_after_start_req_6: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_6;
+ return s_n_llhttp__internal__n_after_start_req_6;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob21, 6);
p = match_seq.current;
@@ -11411,21 +13248,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_6;
+ return s_n_llhttp__internal__n_after_start_req_6;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_8:
- s_n_llhttp__internal__n_start_req_8: {
+ case s_n_llhttp__internal__n_after_start_req_8:
+ s_n_llhttp__internal__n_after_start_req_8: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_8;
+ return s_n_llhttp__internal__n_after_start_req_8;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob22, 4);
p = match_seq.current;
@@ -11436,19 +13273,19 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_8;
+ return s_n_llhttp__internal__n_after_start_req_8;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_9:
- s_n_llhttp__internal__n_start_req_9: {
+ case s_n_llhttp__internal__n_after_start_req_9:
+ s_n_llhttp__internal__n_after_start_req_9: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_9;
+ return s_n_llhttp__internal__n_after_start_req_9;
}
switch (*p) {
case 'Y': {
@@ -11457,60 +13294,60 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_7:
- s_n_llhttp__internal__n_start_req_7: {
+ case s_n_llhttp__internal__n_after_start_req_7:
+ s_n_llhttp__internal__n_after_start_req_7: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_7;
+ return s_n_llhttp__internal__n_after_start_req_7;
}
switch (*p) {
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_8;
+ goto s_n_llhttp__internal__n_after_start_req_8;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_9;
+ goto s_n_llhttp__internal__n_after_start_req_9;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_5:
- s_n_llhttp__internal__n_start_req_5: {
+ case s_n_llhttp__internal__n_after_start_req_5:
+ s_n_llhttp__internal__n_after_start_req_5: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_5;
+ return s_n_llhttp__internal__n_after_start_req_5;
}
switch (*p) {
case 'H': {
p++;
- goto s_n_llhttp__internal__n_start_req_6;
+ goto s_n_llhttp__internal__n_after_start_req_6;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_7;
+ goto s_n_llhttp__internal__n_after_start_req_7;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_12:
- s_n_llhttp__internal__n_start_req_12: {
+ case s_n_llhttp__internal__n_after_start_req_12:
+ s_n_llhttp__internal__n_after_start_req_12: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_12;
+ return s_n_llhttp__internal__n_after_start_req_12;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob23, 3);
p = match_seq.current;
@@ -11521,21 +13358,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_12;
+ return s_n_llhttp__internal__n_after_start_req_12;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_13:
- s_n_llhttp__internal__n_start_req_13: {
+ case s_n_llhttp__internal__n_after_start_req_13:
+ s_n_llhttp__internal__n_after_start_req_13: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_13;
+ return s_n_llhttp__internal__n_after_start_req_13;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob24, 5);
p = match_seq.current;
@@ -11546,59 +13383,59 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_13;
+ return s_n_llhttp__internal__n_after_start_req_13;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_11:
- s_n_llhttp__internal__n_start_req_11: {
+ case s_n_llhttp__internal__n_after_start_req_11:
+ s_n_llhttp__internal__n_after_start_req_11: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_11;
+ return s_n_llhttp__internal__n_after_start_req_11;
}
switch (*p) {
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_12;
+ goto s_n_llhttp__internal__n_after_start_req_12;
}
case 'S': {
p++;
- goto s_n_llhttp__internal__n_start_req_13;
+ goto s_n_llhttp__internal__n_after_start_req_13;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_10:
- s_n_llhttp__internal__n_start_req_10: {
+ case s_n_llhttp__internal__n_after_start_req_10:
+ s_n_llhttp__internal__n_after_start_req_10: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_10;
+ return s_n_llhttp__internal__n_after_start_req_10;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_11;
+ goto s_n_llhttp__internal__n_after_start_req_11;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_14:
- s_n_llhttp__internal__n_start_req_14: {
+ case s_n_llhttp__internal__n_after_start_req_14:
+ s_n_llhttp__internal__n_after_start_req_14: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_14;
+ return s_n_llhttp__internal__n_after_start_req_14;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob25, 4);
p = match_seq.current;
@@ -11609,21 +13446,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_14;
+ return s_n_llhttp__internal__n_after_start_req_14;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_17:
- s_n_llhttp__internal__n_start_req_17: {
+ case s_n_llhttp__internal__n_after_start_req_17:
+ s_n_llhttp__internal__n_after_start_req_17: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_17;
+ return s_n_llhttp__internal__n_after_start_req_17;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob27, 9);
p = match_seq.current;
@@ -11634,24 +13471,24 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_17;
+ return s_n_llhttp__internal__n_after_start_req_17;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_16:
- s_n_llhttp__internal__n_start_req_16: {
+ case s_n_llhttp__internal__n_after_start_req_16:
+ s_n_llhttp__internal__n_after_start_req_16: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_16;
+ return s_n_llhttp__internal__n_after_start_req_16;
}
switch (*p) {
case '_': {
p++;
- goto s_n_llhttp__internal__n_start_req_17;
+ goto s_n_llhttp__internal__n_after_start_req_17;
}
default: {
match = 1;
@@ -11661,36 +13498,36 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_15:
- s_n_llhttp__internal__n_start_req_15: {
+ case s_n_llhttp__internal__n_after_start_req_15:
+ s_n_llhttp__internal__n_after_start_req_15: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_15;
+ return s_n_llhttp__internal__n_after_start_req_15;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob26, 2);
p = match_seq.current;
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_start_req_16;
+ goto s_n_llhttp__internal__n_after_start_req_16;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_15;
+ return s_n_llhttp__internal__n_after_start_req_15;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_18:
- s_n_llhttp__internal__n_start_req_18: {
+ case s_n_llhttp__internal__n_after_start_req_18:
+ s_n_llhttp__internal__n_after_start_req_18: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_18;
+ return s_n_llhttp__internal__n_after_start_req_18;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob28, 3);
p = match_seq.current;
@@ -11701,21 +13538,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_18;
+ return s_n_llhttp__internal__n_after_start_req_18;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_20:
- s_n_llhttp__internal__n_start_req_20: {
+ case s_n_llhttp__internal__n_after_start_req_20:
+ s_n_llhttp__internal__n_after_start_req_20: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_20;
+ return s_n_llhttp__internal__n_after_start_req_20;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob29, 2);
p = match_seq.current;
@@ -11726,21 +13563,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_20;
+ return s_n_llhttp__internal__n_after_start_req_20;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_21:
- s_n_llhttp__internal__n_start_req_21: {
+ case s_n_llhttp__internal__n_after_start_req_21:
+ s_n_llhttp__internal__n_after_start_req_21: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_21;
+ return s_n_llhttp__internal__n_after_start_req_21;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob30, 2);
p = match_seq.current;
@@ -11751,42 +13588,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_21;
+ return s_n_llhttp__internal__n_after_start_req_21;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_19:
- s_n_llhttp__internal__n_start_req_19: {
+ case s_n_llhttp__internal__n_after_start_req_19:
+ s_n_llhttp__internal__n_after_start_req_19: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_19;
+ return s_n_llhttp__internal__n_after_start_req_19;
}
switch (*p) {
case 'I': {
p++;
- goto s_n_llhttp__internal__n_start_req_20;
+ goto s_n_llhttp__internal__n_after_start_req_20;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_21;
+ goto s_n_llhttp__internal__n_after_start_req_21;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_23:
- s_n_llhttp__internal__n_start_req_23: {
+ case s_n_llhttp__internal__n_after_start_req_23:
+ s_n_llhttp__internal__n_after_start_req_23: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_23;
+ return s_n_llhttp__internal__n_after_start_req_23;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob31, 6);
p = match_seq.current;
@@ -11797,21 +13634,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_23;
+ return s_n_llhttp__internal__n_after_start_req_23;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_24:
- s_n_llhttp__internal__n_start_req_24: {
+ case s_n_llhttp__internal__n_after_start_req_24:
+ s_n_llhttp__internal__n_after_start_req_24: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_24;
+ return s_n_llhttp__internal__n_after_start_req_24;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob32, 3);
p = match_seq.current;
@@ -11822,21 +13659,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_24;
+ return s_n_llhttp__internal__n_after_start_req_24;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_26:
- s_n_llhttp__internal__n_start_req_26: {
+ case s_n_llhttp__internal__n_after_start_req_26:
+ s_n_llhttp__internal__n_after_start_req_26: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_26;
+ return s_n_llhttp__internal__n_after_start_req_26;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob33, 7);
p = match_seq.current;
@@ -11847,21 +13684,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_26;
+ return s_n_llhttp__internal__n_after_start_req_26;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_28:
- s_n_llhttp__internal__n_start_req_28: {
+ case s_n_llhttp__internal__n_after_start_req_28:
+ s_n_llhttp__internal__n_after_start_req_28: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_28;
+ return s_n_llhttp__internal__n_after_start_req_28;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob34, 6);
p = match_seq.current;
@@ -11872,19 +13709,19 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_28;
+ return s_n_llhttp__internal__n_after_start_req_28;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_29:
- s_n_llhttp__internal__n_start_req_29: {
+ case s_n_llhttp__internal__n_after_start_req_29:
+ s_n_llhttp__internal__n_after_start_req_29: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_29;
+ return s_n_llhttp__internal__n_after_start_req_29;
}
switch (*p) {
case 'L': {
@@ -11893,60 +13730,60 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_27:
- s_n_llhttp__internal__n_start_req_27: {
+ case s_n_llhttp__internal__n_after_start_req_27:
+ s_n_llhttp__internal__n_after_start_req_27: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_27;
+ return s_n_llhttp__internal__n_after_start_req_27;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_28;
+ goto s_n_llhttp__internal__n_after_start_req_28;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_29;
+ goto s_n_llhttp__internal__n_after_start_req_29;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_25:
- s_n_llhttp__internal__n_start_req_25: {
+ case s_n_llhttp__internal__n_after_start_req_25:
+ s_n_llhttp__internal__n_after_start_req_25: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_25;
+ return s_n_llhttp__internal__n_after_start_req_25;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_26;
+ goto s_n_llhttp__internal__n_after_start_req_26;
}
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_27;
+ goto s_n_llhttp__internal__n_after_start_req_27;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_30:
- s_n_llhttp__internal__n_start_req_30: {
+ case s_n_llhttp__internal__n_after_start_req_30:
+ s_n_llhttp__internal__n_after_start_req_30: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_30;
+ return s_n_llhttp__internal__n_after_start_req_30;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob35, 2);
p = match_seq.current;
@@ -11957,50 +13794,50 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_30;
+ return s_n_llhttp__internal__n_after_start_req_30;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_22:
- s_n_llhttp__internal__n_start_req_22: {
+ case s_n_llhttp__internal__n_after_start_req_22:
+ s_n_llhttp__internal__n_after_start_req_22: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_22;
+ return s_n_llhttp__internal__n_after_start_req_22;
}
switch (*p) {
case '-': {
p++;
- goto s_n_llhttp__internal__n_start_req_23;
+ goto s_n_llhttp__internal__n_after_start_req_23;
}
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_24;
+ goto s_n_llhttp__internal__n_after_start_req_24;
}
case 'K': {
p++;
- goto s_n_llhttp__internal__n_start_req_25;
+ goto s_n_llhttp__internal__n_after_start_req_25;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_30;
+ goto s_n_llhttp__internal__n_after_start_req_30;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_31:
- s_n_llhttp__internal__n_start_req_31: {
+ case s_n_llhttp__internal__n_after_start_req_31:
+ s_n_llhttp__internal__n_after_start_req_31: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_31;
+ return s_n_llhttp__internal__n_after_start_req_31;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob36, 5);
p = match_seq.current;
@@ -12011,21 +13848,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_31;
+ return s_n_llhttp__internal__n_after_start_req_31;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_32:
- s_n_llhttp__internal__n_start_req_32: {
+ case s_n_llhttp__internal__n_after_start_req_32:
+ s_n_llhttp__internal__n_after_start_req_32: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_32;
+ return s_n_llhttp__internal__n_after_start_req_32;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob37, 6);
p = match_seq.current;
@@ -12036,21 +13873,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_32;
+ return s_n_llhttp__internal__n_after_start_req_32;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_35:
- s_n_llhttp__internal__n_start_req_35: {
+ case s_n_llhttp__internal__n_after_start_req_35:
+ s_n_llhttp__internal__n_after_start_req_35: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_35;
+ return s_n_llhttp__internal__n_after_start_req_35;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob38, 2);
p = match_seq.current;
@@ -12061,21 +13898,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_35;
+ return s_n_llhttp__internal__n_after_start_req_35;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_36:
- s_n_llhttp__internal__n_start_req_36: {
+ case s_n_llhttp__internal__n_after_start_req_36:
+ s_n_llhttp__internal__n_after_start_req_36: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_36;
+ return s_n_llhttp__internal__n_after_start_req_36;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob39, 2);
p = match_seq.current;
@@ -12086,42 +13923,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_36;
+ return s_n_llhttp__internal__n_after_start_req_36;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_34:
- s_n_llhttp__internal__n_start_req_34: {
+ case s_n_llhttp__internal__n_after_start_req_34:
+ s_n_llhttp__internal__n_after_start_req_34: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_34;
+ return s_n_llhttp__internal__n_after_start_req_34;
}
switch (*p) {
case 'T': {
p++;
- goto s_n_llhttp__internal__n_start_req_35;
+ goto s_n_llhttp__internal__n_after_start_req_35;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_36;
+ goto s_n_llhttp__internal__n_after_start_req_36;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_37:
- s_n_llhttp__internal__n_start_req_37: {
+ case s_n_llhttp__internal__n_after_start_req_37:
+ s_n_llhttp__internal__n_after_start_req_37: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_37;
+ return s_n_llhttp__internal__n_after_start_req_37;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob40, 2);
p = match_seq.current;
@@ -12132,21 +13969,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_37;
+ return s_n_llhttp__internal__n_after_start_req_37;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_38:
- s_n_llhttp__internal__n_start_req_38: {
+ case s_n_llhttp__internal__n_after_start_req_38:
+ s_n_llhttp__internal__n_after_start_req_38: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_38;
+ return s_n_llhttp__internal__n_after_start_req_38;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob41, 2);
p = match_seq.current;
@@ -12157,21 +13994,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_38;
+ return s_n_llhttp__internal__n_after_start_req_38;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_42:
- s_n_llhttp__internal__n_start_req_42: {
+ case s_n_llhttp__internal__n_after_start_req_42:
+ s_n_llhttp__internal__n_after_start_req_42: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_42;
+ return s_n_llhttp__internal__n_after_start_req_42;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob42, 3);
p = match_seq.current;
@@ -12182,21 +14019,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_42;
+ return s_n_llhttp__internal__n_after_start_req_42;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_43:
- s_n_llhttp__internal__n_start_req_43: {
+ case s_n_llhttp__internal__n_after_start_req_43:
+ s_n_llhttp__internal__n_after_start_req_43: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_43;
+ return s_n_llhttp__internal__n_after_start_req_43;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob43, 4);
p = match_seq.current;
@@ -12207,57 +14044,57 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_43;
+ return s_n_llhttp__internal__n_after_start_req_43;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_41:
- s_n_llhttp__internal__n_start_req_41: {
+ case s_n_llhttp__internal__n_after_start_req_41:
+ s_n_llhttp__internal__n_after_start_req_41: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_41;
+ return s_n_llhttp__internal__n_after_start_req_41;
}
switch (*p) {
case 'F': {
p++;
- goto s_n_llhttp__internal__n_start_req_42;
+ goto s_n_llhttp__internal__n_after_start_req_42;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_43;
+ goto s_n_llhttp__internal__n_after_start_req_43;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_40:
- s_n_llhttp__internal__n_start_req_40: {
+ case s_n_llhttp__internal__n_after_start_req_40:
+ s_n_llhttp__internal__n_after_start_req_40: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_40;
+ return s_n_llhttp__internal__n_after_start_req_40;
}
switch (*p) {
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_41;
+ goto s_n_llhttp__internal__n_after_start_req_41;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_39:
- s_n_llhttp__internal__n_start_req_39: {
+ case s_n_llhttp__internal__n_after_start_req_39:
+ s_n_llhttp__internal__n_after_start_req_39: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_39;
+ return s_n_llhttp__internal__n_after_start_req_39;
}
switch (*p) {
case 'I': {
@@ -12267,21 +14104,21 @@ static llparse_state_t llhttp__internal__run(
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_40;
+ goto s_n_llhttp__internal__n_after_start_req_40;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_45:
- s_n_llhttp__internal__n_start_req_45: {
+ case s_n_llhttp__internal__n_after_start_req_45:
+ s_n_llhttp__internal__n_after_start_req_45: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_45;
+ return s_n_llhttp__internal__n_after_start_req_45;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob44, 2);
p = match_seq.current;
@@ -12292,24 +14129,24 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_45;
+ return s_n_llhttp__internal__n_after_start_req_45;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_44:
- s_n_llhttp__internal__n_start_req_44: {
+ case s_n_llhttp__internal__n_after_start_req_44:
+ s_n_llhttp__internal__n_after_start_req_44: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_44;
+ return s_n_llhttp__internal__n_after_start_req_44;
}
switch (*p) {
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_45;
+ goto s_n_llhttp__internal__n_after_start_req_45;
}
case 'T': {
p++;
@@ -12317,51 +14154,51 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_33:
- s_n_llhttp__internal__n_start_req_33: {
+ case s_n_llhttp__internal__n_after_start_req_33:
+ s_n_llhttp__internal__n_after_start_req_33: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_33;
+ return s_n_llhttp__internal__n_after_start_req_33;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_34;
+ goto s_n_llhttp__internal__n_after_start_req_34;
}
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_37;
+ goto s_n_llhttp__internal__n_after_start_req_37;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_38;
+ goto s_n_llhttp__internal__n_after_start_req_38;
}
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_39;
+ goto s_n_llhttp__internal__n_after_start_req_39;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_44;
+ goto s_n_llhttp__internal__n_after_start_req_44;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_48:
- s_n_llhttp__internal__n_start_req_48: {
+ case s_n_llhttp__internal__n_after_start_req_48:
+ s_n_llhttp__internal__n_after_start_req_48: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_48;
+ return s_n_llhttp__internal__n_after_start_req_48;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob45, 3);
p = match_seq.current;
@@ -12372,21 +14209,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_48;
+ return s_n_llhttp__internal__n_after_start_req_48;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_49:
- s_n_llhttp__internal__n_start_req_49: {
+ case s_n_llhttp__internal__n_after_start_req_49:
+ s_n_llhttp__internal__n_after_start_req_49: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_49;
+ return s_n_llhttp__internal__n_after_start_req_49;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob46, 3);
p = match_seq.current;
@@ -12397,21 +14234,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_49;
+ return s_n_llhttp__internal__n_after_start_req_49;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_50:
- s_n_llhttp__internal__n_start_req_50: {
+ case s_n_llhttp__internal__n_after_start_req_50:
+ s_n_llhttp__internal__n_after_start_req_50: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_50;
+ return s_n_llhttp__internal__n_after_start_req_50;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob47, 5);
p = match_seq.current;
@@ -12422,21 +14259,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_50;
+ return s_n_llhttp__internal__n_after_start_req_50;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_51:
- s_n_llhttp__internal__n_start_req_51: {
+ case s_n_llhttp__internal__n_after_start_req_51:
+ s_n_llhttp__internal__n_after_start_req_51: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_51;
+ return s_n_llhttp__internal__n_after_start_req_51;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob48, 3);
p = match_seq.current;
@@ -12447,67 +14284,67 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_51;
+ return s_n_llhttp__internal__n_after_start_req_51;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_47:
- s_n_llhttp__internal__n_start_req_47: {
+ case s_n_llhttp__internal__n_after_start_req_47:
+ s_n_llhttp__internal__n_after_start_req_47: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_47;
+ return s_n_llhttp__internal__n_after_start_req_47;
}
switch (*p) {
case 'B': {
p++;
- goto s_n_llhttp__internal__n_start_req_48;
+ goto s_n_llhttp__internal__n_after_start_req_48;
}
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_49;
+ goto s_n_llhttp__internal__n_after_start_req_49;
}
case 'D': {
p++;
- goto s_n_llhttp__internal__n_start_req_50;
+ goto s_n_llhttp__internal__n_after_start_req_50;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_51;
+ goto s_n_llhttp__internal__n_after_start_req_51;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_46:
- s_n_llhttp__internal__n_start_req_46: {
+ case s_n_llhttp__internal__n_after_start_req_46:
+ s_n_llhttp__internal__n_after_start_req_46: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_46;
+ return s_n_llhttp__internal__n_after_start_req_46;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_47;
+ goto s_n_llhttp__internal__n_after_start_req_47;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_54:
- s_n_llhttp__internal__n_start_req_54: {
+ case s_n_llhttp__internal__n_after_start_req_54:
+ s_n_llhttp__internal__n_after_start_req_54: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_54;
+ return s_n_llhttp__internal__n_after_start_req_54;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob49, 3);
p = match_seq.current;
@@ -12518,19 +14355,19 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_54;
+ return s_n_llhttp__internal__n_after_start_req_54;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_56:
- s_n_llhttp__internal__n_start_req_56: {
+ case s_n_llhttp__internal__n_after_start_req_56:
+ s_n_llhttp__internal__n_after_start_req_56: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_56;
+ return s_n_llhttp__internal__n_after_start_req_56;
}
switch (*p) {
case 'P': {
@@ -12539,18 +14376,18 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_57:
- s_n_llhttp__internal__n_start_req_57: {
+ case s_n_llhttp__internal__n_after_start_req_57:
+ s_n_llhttp__internal__n_after_start_req_57: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_57;
+ return s_n_llhttp__internal__n_after_start_req_57;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob50, 9);
p = match_seq.current;
@@ -12561,63 +14398,63 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_57;
+ return s_n_llhttp__internal__n_after_start_req_57;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_55:
- s_n_llhttp__internal__n_start_req_55: {
+ case s_n_llhttp__internal__n_after_start_req_55:
+ s_n_llhttp__internal__n_after_start_req_55: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_55;
+ return s_n_llhttp__internal__n_after_start_req_55;
}
switch (*p) {
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_56;
+ goto s_n_llhttp__internal__n_after_start_req_56;
}
case '_': {
p++;
- goto s_n_llhttp__internal__n_start_req_57;
+ goto s_n_llhttp__internal__n_after_start_req_57;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_53:
- s_n_llhttp__internal__n_start_req_53: {
+ case s_n_llhttp__internal__n_after_start_req_53:
+ s_n_llhttp__internal__n_after_start_req_53: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_53;
+ return s_n_llhttp__internal__n_after_start_req_53;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_54;
+ goto s_n_llhttp__internal__n_after_start_req_54;
}
case 'T': {
p++;
- goto s_n_llhttp__internal__n_start_req_55;
+ goto s_n_llhttp__internal__n_after_start_req_55;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_58:
- s_n_llhttp__internal__n_start_req_58: {
+ case s_n_llhttp__internal__n_after_start_req_58:
+ s_n_llhttp__internal__n_after_start_req_58: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_58;
+ return s_n_llhttp__internal__n_after_start_req_58;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob51, 4);
p = match_seq.current;
@@ -12628,21 +14465,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_58;
+ return s_n_llhttp__internal__n_after_start_req_58;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_59:
- s_n_llhttp__internal__n_start_req_59: {
+ case s_n_llhttp__internal__n_after_start_req_59:
+ s_n_llhttp__internal__n_after_start_req_59: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_59;
+ return s_n_llhttp__internal__n_after_start_req_59;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob52, 7);
p = match_seq.current;
@@ -12653,46 +14490,46 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_59;
+ return s_n_llhttp__internal__n_after_start_req_59;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_52:
- s_n_llhttp__internal__n_start_req_52: {
+ case s_n_llhttp__internal__n_after_start_req_52:
+ s_n_llhttp__internal__n_after_start_req_52: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_52;
+ return s_n_llhttp__internal__n_after_start_req_52;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_53;
+ goto s_n_llhttp__internal__n_after_start_req_53;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_58;
+ goto s_n_llhttp__internal__n_after_start_req_58;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_59;
+ goto s_n_llhttp__internal__n_after_start_req_59;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_61:
- s_n_llhttp__internal__n_start_req_61: {
+ case s_n_llhttp__internal__n_after_start_req_61:
+ s_n_llhttp__internal__n_after_start_req_61: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_61;
+ return s_n_llhttp__internal__n_after_start_req_61;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob53, 6);
p = match_seq.current;
@@ -12703,21 +14540,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_61;
+ return s_n_llhttp__internal__n_after_start_req_61;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_62:
- s_n_llhttp__internal__n_start_req_62: {
+ case s_n_llhttp__internal__n_after_start_req_62:
+ s_n_llhttp__internal__n_after_start_req_62: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_62;
+ return s_n_llhttp__internal__n_after_start_req_62;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob54, 3);
p = match_seq.current;
@@ -12728,42 +14565,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_62;
+ return s_n_llhttp__internal__n_after_start_req_62;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_60:
- s_n_llhttp__internal__n_start_req_60: {
+ case s_n_llhttp__internal__n_after_start_req_60:
+ s_n_llhttp__internal__n_after_start_req_60: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_60;
+ return s_n_llhttp__internal__n_after_start_req_60;
}
switch (*p) {
case 'E': {
p++;
- goto s_n_llhttp__internal__n_start_req_61;
+ goto s_n_llhttp__internal__n_after_start_req_61;
}
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_62;
+ goto s_n_llhttp__internal__n_after_start_req_62;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_65:
- s_n_llhttp__internal__n_start_req_65: {
+ case s_n_llhttp__internal__n_after_start_req_65:
+ s_n_llhttp__internal__n_after_start_req_65: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_65;
+ return s_n_llhttp__internal__n_after_start_req_65;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob55, 3);
p = match_seq.current;
@@ -12774,21 +14611,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_65;
+ return s_n_llhttp__internal__n_after_start_req_65;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_67:
- s_n_llhttp__internal__n_start_req_67: {
+ case s_n_llhttp__internal__n_after_start_req_67:
+ s_n_llhttp__internal__n_after_start_req_67: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_67;
+ return s_n_llhttp__internal__n_after_start_req_67;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob56, 2);
p = match_seq.current;
@@ -12799,21 +14636,21 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_67;
+ return s_n_llhttp__internal__n_after_start_req_67;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_68:
- s_n_llhttp__internal__n_start_req_68: {
+ case s_n_llhttp__internal__n_after_start_req_68:
+ s_n_llhttp__internal__n_after_start_req_68: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_68;
+ return s_n_llhttp__internal__n_after_start_req_68;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob57, 2);
p = match_seq.current;
@@ -12824,42 +14661,42 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_68;
+ return s_n_llhttp__internal__n_after_start_req_68;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_66:
- s_n_llhttp__internal__n_start_req_66: {
+ case s_n_llhttp__internal__n_after_start_req_66:
+ s_n_llhttp__internal__n_after_start_req_66: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_66;
+ return s_n_llhttp__internal__n_after_start_req_66;
}
switch (*p) {
case 'I': {
p++;
- goto s_n_llhttp__internal__n_start_req_67;
+ goto s_n_llhttp__internal__n_after_start_req_67;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_68;
+ goto s_n_llhttp__internal__n_after_start_req_68;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_69:
- s_n_llhttp__internal__n_start_req_69: {
+ case s_n_llhttp__internal__n_after_start_req_69:
+ s_n_llhttp__internal__n_after_start_req_69: {
llparse_match_t match_seq;
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_69;
+ return s_n_llhttp__internal__n_after_start_req_69;
}
match_seq = llparse__match_sequence_id(state, p, endp, llparse_blob58, 8);
p = match_seq.current;
@@ -12870,139 +14707,154 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_method_1;
}
case kMatchPause: {
- return s_n_llhttp__internal__n_start_req_69;
+ return s_n_llhttp__internal__n_after_start_req_69;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_64:
- s_n_llhttp__internal__n_start_req_64: {
+ case s_n_llhttp__internal__n_after_start_req_64:
+ s_n_llhttp__internal__n_after_start_req_64: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_64;
+ return s_n_llhttp__internal__n_after_start_req_64;
}
switch (*p) {
case 'B': {
p++;
- goto s_n_llhttp__internal__n_start_req_65;
+ goto s_n_llhttp__internal__n_after_start_req_65;
}
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_66;
+ goto s_n_llhttp__internal__n_after_start_req_66;
}
case 'S': {
p++;
- goto s_n_llhttp__internal__n_start_req_69;
+ goto s_n_llhttp__internal__n_after_start_req_69;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req_63:
- s_n_llhttp__internal__n_start_req_63: {
+ case s_n_llhttp__internal__n_after_start_req_63:
+ s_n_llhttp__internal__n_after_start_req_63: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req_63;
+ return s_n_llhttp__internal__n_after_start_req_63;
}
switch (*p) {
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_64;
+ goto s_n_llhttp__internal__n_after_start_req_64;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_start_req:
- s_n_llhttp__internal__n_start_req: {
+ case s_n_llhttp__internal__n_after_start_req:
+ s_n_llhttp__internal__n_after_start_req: {
if (p == endp) {
- return s_n_llhttp__internal__n_start_req;
+ return s_n_llhttp__internal__n_after_start_req;
}
switch (*p) {
case 'A': {
p++;
- goto s_n_llhttp__internal__n_start_req_1;
+ goto s_n_llhttp__internal__n_after_start_req_1;
}
case 'B': {
p++;
- goto s_n_llhttp__internal__n_start_req_4;
+ goto s_n_llhttp__internal__n_after_start_req_4;
}
case 'C': {
p++;
- goto s_n_llhttp__internal__n_start_req_5;
+ goto s_n_llhttp__internal__n_after_start_req_5;
}
case 'D': {
p++;
- goto s_n_llhttp__internal__n_start_req_10;
+ goto s_n_llhttp__internal__n_after_start_req_10;
}
case 'F': {
p++;
- goto s_n_llhttp__internal__n_start_req_14;
+ goto s_n_llhttp__internal__n_after_start_req_14;
}
case 'G': {
p++;
- goto s_n_llhttp__internal__n_start_req_15;
+ goto s_n_llhttp__internal__n_after_start_req_15;
}
case 'H': {
p++;
- goto s_n_llhttp__internal__n_start_req_18;
+ goto s_n_llhttp__internal__n_after_start_req_18;
}
case 'L': {
p++;
- goto s_n_llhttp__internal__n_start_req_19;
+ goto s_n_llhttp__internal__n_after_start_req_19;
}
case 'M': {
p++;
- goto s_n_llhttp__internal__n_start_req_22;
+ goto s_n_llhttp__internal__n_after_start_req_22;
}
case 'N': {
p++;
- goto s_n_llhttp__internal__n_start_req_31;
+ goto s_n_llhttp__internal__n_after_start_req_31;
}
case 'O': {
p++;
- goto s_n_llhttp__internal__n_start_req_32;
+ goto s_n_llhttp__internal__n_after_start_req_32;
}
case 'P': {
p++;
- goto s_n_llhttp__internal__n_start_req_33;
+ goto s_n_llhttp__internal__n_after_start_req_33;
}
case 'R': {
p++;
- goto s_n_llhttp__internal__n_start_req_46;
+ goto s_n_llhttp__internal__n_after_start_req_46;
}
case 'S': {
p++;
- goto s_n_llhttp__internal__n_start_req_52;
+ goto s_n_llhttp__internal__n_after_start_req_52;
}
case 'T': {
p++;
- goto s_n_llhttp__internal__n_start_req_60;
+ goto s_n_llhttp__internal__n_after_start_req_60;
}
case 'U': {
p++;
- goto s_n_llhttp__internal__n_start_req_63;
+ goto s_n_llhttp__internal__n_after_start_req_63;
}
default: {
- goto s_n_llhttp__internal__n_error_54;
+ goto s_n_llhttp__internal__n_error_77;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_method_1:
+ s_n_llhttp__internal__n_span_start_llhttp__on_method_1: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_method_1;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_method;
+ goto s_n_llhttp__internal__n_after_start_req;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_invoke_llhttp__on_status_complete:
s_n_llhttp__internal__n_invoke_llhttp__on_status_complete: {
switch (llhttp__on_status_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_headers_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_20;
default:
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_error_69;
}
/* UNREACHABLE */;
abort();
@@ -13086,7 +14938,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_res_status_start;
}
default: {
- goto s_n_llhttp__internal__n_error_48;
+ goto s_n_llhttp__internal__n_error_70;
}
}
/* UNREACHABLE */;
@@ -13155,10 +15007,10 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_res_http_end:
- s_n_llhttp__internal__n_res_http_end: {
+ case s_n_llhttp__internal__n_res_after_version:
+ s_n_llhttp__internal__n_res_after_version: {
if (p == endp) {
- return s_n_llhttp__internal__n_res_http_end;
+ return s_n_llhttp__internal__n_res_after_version;
}
switch (*p) {
case ' ': {
@@ -13166,21 +15018,54 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_update_status_code;
}
default: {
- goto s_n_llhttp__internal__n_error_49;
+ goto s_n_llhttp__internal__n_error_71;
}
}
/* UNREACHABLE */;
abort();
}
- case s_n_llhttp__internal__n_res_http_minor:
- s_n_llhttp__internal__n_res_http_minor: {
- if (p == endp) {
- return s_n_llhttp__internal__n_res_http_minor;
+ case s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1:
+ s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1: {
+ switch (llhttp__on_version_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_res_after_version;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_21;
+ default:
+ goto s_n_llhttp__internal__n_error_67;
}
- switch (*p) {
- case '0': {
- p++;
- match = 0;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_66:
+ s_n_llhttp__internal__n_error_66: {
+ state->error = 0x9;
+ state->reason = "Invalid HTTP version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_error_72:
+ s_n_llhttp__internal__n_error_72: {
+ state->error = 0x9;
+ state->reason = "Invalid minor version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ case s_n_llhttp__internal__n_res_http_minor:
+ s_n_llhttp__internal__n_res_http_minor: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_res_http_minor;
+ }
+ switch (*p) {
+ case '0': {
+ p++;
+ match = 0;
goto s_n_llhttp__internal__n_invoke_store_http_minor_1;
}
case '1': {
@@ -13229,12 +15114,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_minor_1;
}
default: {
- goto s_n_llhttp__internal__n_error_50;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_7;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_73:
+ s_n_llhttp__internal__n_error_73: {
+ state->error = 0x9;
+ state->reason = "Expected dot";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_res_http_dot:
s_n_llhttp__internal__n_res_http_dot: {
if (p == endp) {
@@ -13246,12 +15141,22 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_res_http_minor;
}
default: {
- goto s_n_llhttp__internal__n_error_51;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_8;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_error_74:
+ s_n_llhttp__internal__n_error_74: {
+ state->error = 0x9;
+ state->reason = "Invalid major version";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_res_http_major:
s_n_llhttp__internal__n_res_http_major: {
if (p == endp) {
@@ -13309,12 +15214,23 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_invoke_store_http_major_1;
}
default: {
- goto s_n_llhttp__internal__n_error_52;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_9;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_version_1:
+ s_n_llhttp__internal__n_span_start_llhttp__on_version_1: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_version_1;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_version;
+ goto s_n_llhttp__internal__n_res_http_major;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_start_res:
s_n_llhttp__internal__n_start_res: {
llparse_match_t match_seq;
@@ -13327,18 +15243,31 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_res_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version_1;
}
case kMatchPause: {
return s_n_llhttp__internal__n_start_res;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_55;
+ goto s_n_llhttp__internal__n_error_78;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_llhttp__on_method_complete:
+ s_n_llhttp__internal__n_invoke_llhttp__on_method_complete: {
+ switch (llhttp__on_method_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_req_first_space_before_url;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_19;
+ default:
+ goto s_n_llhttp__internal__n_error_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_or_res_method_2:
s_n_llhttp__internal__n_req_or_res_method_2: {
llparse_match_t match_seq;
@@ -13358,12 +15287,21 @@ static llparse_state_t llhttp__internal__run(
return s_n_llhttp__internal__n_req_or_res_method_2;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_53;
+ goto s_n_llhttp__internal__n_error_75;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_update_type_1:
+ s_n_llhttp__internal__n_invoke_update_type_1: {
+ switch (llhttp__internal__c_update_type_1(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_req_or_res_method_3:
s_n_llhttp__internal__n_req_or_res_method_3: {
llparse_match_t match_seq;
@@ -13376,13 +15314,13 @@ static llparse_state_t llhttp__internal__run(
switch (match_seq.status) {
case kMatchComplete: {
p++;
- goto s_n_llhttp__internal__n_invoke_update_type_1;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_method_1;
}
case kMatchPause: {
return s_n_llhttp__internal__n_req_or_res_method_3;
}
case kMatchMismatch: {
- goto s_n_llhttp__internal__n_error_53;
+ goto s_n_llhttp__internal__n_error_75;
}
}
/* UNREACHABLE */;
@@ -13403,7 +15341,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_or_res_method_3;
}
default: {
- goto s_n_llhttp__internal__n_error_53;
+ goto s_n_llhttp__internal__n_error_75;
}
}
/* UNREACHABLE */;
@@ -13420,12 +15358,23 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_req_or_res_method_1;
}
default: {
- goto s_n_llhttp__internal__n_error_53;
+ goto s_n_llhttp__internal__n_error_75;
}
}
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_span_start_llhttp__on_method:
+ s_n_llhttp__internal__n_span_start_llhttp__on_method: {
+ if (p == endp) {
+ return s_n_llhttp__internal__n_span_start_llhttp__on_method;
+ }
+ state->_span_pos0 = (void*) p;
+ state->_span_cb0 = llhttp__on_method;
+ goto s_n_llhttp__internal__n_req_or_res_method;
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_start_req_or_res:
s_n_llhttp__internal__n_start_req_or_res: {
if (p == endp) {
@@ -13433,7 +15382,7 @@ static llparse_state_t llhttp__internal__run(
}
switch (*p) {
case 'H': {
- goto s_n_llhttp__internal__n_req_or_res_method;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_method;
}
default: {
goto s_n_llhttp__internal__n_invoke_update_type_2;
@@ -13446,7 +15395,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_type: {
switch (llhttp__internal__c_load_type(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_start_req;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_method_1;
case 2:
goto s_n_llhttp__internal__n_start_res;
default:
@@ -13455,6 +15404,15 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ case s_n_llhttp__internal__n_invoke_update_finish:
+ s_n_llhttp__internal__n_invoke_update_finish: {
+ switch (llhttp__internal__c_update_finish(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_message_begin;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
case s_n_llhttp__internal__n_start:
s_n_llhttp__internal__n_start: {
if (p == endp) {
@@ -13470,7 +15428,7 @@ static llparse_state_t llhttp__internal__run(
goto s_n_llhttp__internal__n_start;
}
default: {
- goto s_n_llhttp__internal__n_invoke_update_finish;
+ goto s_n_llhttp__internal__n_invoke_load_initial_message_completed;
}
}
/* UNREACHABLE */;
@@ -13480,7 +15438,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */
abort();
}
- s_n_llhttp__internal__n_error_42: {
+ s_n_llhttp__internal__n_error_61: {
state->error = 0x7;
state->reason = "Invalid characters in url";
state->error_pos = (const char*) p;
@@ -13497,10 +15455,26 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags: {
- switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
- case 1:
+ s_n_llhttp__internal__n_invoke_update_initial_message_completed: {
+ switch (llhttp__internal__c_update_initial_message_completed(state, p, endp)) {
+ default:
goto s_n_llhttp__internal__n_invoke_update_finish_2;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_update_content_length: {
+ switch (llhttp__internal__c_update_content_length(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_invoke_update_initial_message_completed;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_1: {
+ switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_update_initial_message_completed;
default:
goto s_n_llhttp__internal__n_closed;
}
@@ -13510,12 +15484,12 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_update_finish_1: {
switch (llhttp__internal__c_update_finish_1(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_1;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_5: {
+ s_n_llhttp__internal__n_pause_11: {
state->error = 0x15;
state->reason = "on_message_complete pause";
state->error_pos = (const char*) p;
@@ -13524,188 +15498,487 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_10: {
- state->error = 0x12;
- state->reason = "`on_message_complete` callback error";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_error_24: {
+ state->error = 0x12;
+ state->reason = "`on_message_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_13: {
+ state->error = 0x15;
+ state->reason = "on_chunk_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_27: {
+ state->error = 0x14;
+ state->reason = "`on_chunk_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1: {
+ switch (llhttp__on_chunk_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_13;
+ default:
+ goto s_n_llhttp__internal__n_error_27;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_26: {
+ state->error = 0x4;
+ state->reason = "Content-Length can't be present with Transfer-Encoding";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_2: {
+ state->error = 0x15;
+ state->reason = "on_message_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_pause_1;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_6: {
+ state->error = 0x12;
+ state->reason = "`on_message_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1: {
+ switch (llhttp__on_message_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_pause_1;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_2;
+ default:
+ goto s_n_llhttp__internal__n_error_6;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_22: {
+ state->error = 0xc;
+ state->reason = "Chunk size overflow";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_3: {
+ state->error = 0x15;
+ state->reason = "on_chunk_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_content_length_1;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_8: {
+ state->error = 0x14;
+ state->reason = "`on_chunk_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete: {
+ switch (llhttp__on_chunk_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_update_content_length_1;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_3;
+ default:
+ goto s_n_llhttp__internal__n_error_8;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_body: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_body(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_data_almost_done;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_chunk_data_almost_done;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_or_flags: {
+ switch (llhttp__internal__c_or_flags(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_header_field_start;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_4: {
+ state->error = 0x15;
+ state->reason = "on_chunk_header pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_is_equal_content_length;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_7: {
+ state->error = 0x13;
+ state->reason = "`on_chunk_header` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header: {
+ switch (llhttp__on_chunk_header(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_is_equal_content_length;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_4;
+ default:
+ goto s_n_llhttp__internal__n_error_7;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_9: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_10: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_5: {
+ state->error = 0x15;
+ state->reason = "on_chunk_extension_name pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_almost_done;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_11: {
+ state->error = 0x22;
+ state->reason = "`on_chunk_extension_name` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_name(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_6: {
+ state->error = 0x15;
+ state->reason = "on_chunk_extension_name pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extensions;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_12: {
+ state->error = 0x22;
+ state->reason = "`on_chunk_extension_name` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_name(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_1;
/* UNREACHABLE */;
abort();
}
s_n_llhttp__internal__n_pause_7: {
state->error = 0x15;
- state->reason = "on_chunk_complete pause";
+ state->reason = "on_chunk_extension_value pause";
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_almost_done;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_13: {
- state->error = 0x14;
- state->reason = "`on_chunk_complete` callback error";
+ s_n_llhttp__internal__n_error_14: {
+ state->error = 0x23;
+ state->reason = "`on_chunk_extension_value` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete_1: {
- switch (llhttp__on_chunk_complete(state, p, endp)) {
- case 0:
- goto s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_2;
- case 21:
- goto s_n_llhttp__internal__n_pause_7;
- default:
- goto s_n_llhttp__internal__n_error_13;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete;
+ return s_error;
}
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_12: {
- state->error = 0x4;
- state->reason = "Content-Length can't be present with Transfer-Encoding";
+ s_n_llhttp__internal__n_error_16: {
+ state->error = 0x2;
+ state->reason = "Invalid character in chunk extensions quote value";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_2: {
+ s_n_llhttp__internal__n_pause_8: {
state->error = 0x15;
- state->reason = "on_message_complete pause";
+ state->reason = "on_chunk_extension_value pause";
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_pause_1;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extension_quoted_value_done;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_3: {
- state->error = 0x12;
- state->reason = "`on_message_complete` callback error";
+ s_n_llhttp__internal__n_error_15: {
+ state->error = 0x23;
+ state->reason = "`on_chunk_extension_value` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_llhttp__on_message_complete_1: {
- switch (llhttp__on_message_complete(state, p, endp)) {
- case 0:
- goto s_n_llhttp__internal__n_pause_1;
- case 21:
- goto s_n_llhttp__internal__n_pause_2;
- default:
- goto s_n_llhttp__internal__n_error_3;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1;
+ return s_error;
}
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_1;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_8: {
- state->error = 0xc;
- state->reason = "Chunk size overflow";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_17;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_error_17;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_3: {
+ s_n_llhttp__internal__n_pause_9: {
state->error = 0x15;
- state->reason = "on_chunk_complete pause";
+ state->reason = "on_chunk_extension_value pause";
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_content_length;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_size_otherwise;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_5: {
- state->error = 0x14;
- state->reason = "`on_chunk_complete` callback error";
+ s_n_llhttp__internal__n_error_18: {
+ state->error = 0x23;
+ state->reason = "`on_chunk_extension_value` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_llhttp__on_chunk_complete: {
- switch (llhttp__on_chunk_complete(state, p, endp)) {
- case 0:
- goto s_n_llhttp__internal__n_invoke_update_content_length;
- case 21:
- goto s_n_llhttp__internal__n_pause_3;
- default:
- goto s_n_llhttp__internal__n_error_5;
- }
- /* UNREACHABLE */;
- abort();
- }
- s_n_llhttp__internal__n_span_end_llhttp__on_body: {
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_3: {
const unsigned char* start;
int err;
start = state->_span_pos0;
state->_span_pos0 = NULL;
- err = llhttp__on_body(state, start, p);
+ err = llhttp__on_chunk_extension_value(state, start, p);
if (err != 0) {
state->error = err;
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_data_almost_done;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2;
return s_error;
}
- goto s_n_llhttp__internal__n_chunk_data_almost_done;
+ p++;
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_value_complete_2;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags: {
- switch (llhttp__internal__c_or_flags(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_header_field_start;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_value_4: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_value(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_19;
+ return s_error;
}
+ p++;
+ goto s_n_llhttp__internal__n_error_19;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_4: {
+ s_n_llhttp__internal__n_pause_10: {
state->error = 0x15;
- state->reason = "on_chunk_header pause";
+ state->reason = "on_chunk_extension_name pause";
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_is_equal_content_length;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_chunk_extension_value;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_4: {
- state->error = 0x13;
- state->reason = "`on_chunk_header` callback error";
+ s_n_llhttp__internal__n_error_13: {
+ state->error = 0x22;
+ state->reason = "`on_chunk_extension_name` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_llhttp__on_chunk_header: {
- switch (llhttp__on_chunk_header(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_llhttp__on_chunk_extension_name_complete_2: {
+ switch (llhttp__on_chunk_extension_name_complete(state, p, endp)) {
case 0:
- goto s_n_llhttp__internal__n_invoke_is_equal_content_length;
+ goto s_n_llhttp__internal__n_chunk_extension_value;
case 21:
- goto s_n_llhttp__internal__n_pause_4;
+ goto s_n_llhttp__internal__n_pause_10;
default:
- goto s_n_llhttp__internal__n_error_4;
+ goto s_n_llhttp__internal__n_error_13;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_6: {
- state->error = 0x2;
- state->reason = "Invalid character in chunk parameters";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_name(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_chunk_extension_value;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_7: {
+ s_n_llhttp__internal__n_span_end_llhttp__on_chunk_extension_name_3: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_chunk_extension_name(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) (p + 1);
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_20;
+ return s_error;
+ }
+ p++;
+ goto s_n_llhttp__internal__n_error_20;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_21: {
state->error = 0xc;
state->reason = "Invalid character in chunk size";
state->error_pos = (const char*) p;
@@ -13717,14 +15990,14 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_mul_add_content_length: {
switch (llhttp__internal__c_mul_add_content_length(state, p, endp, match)) {
case 1:
- goto s_n_llhttp__internal__n_error_8;
+ goto s_n_llhttp__internal__n_error_22;
default:
goto s_n_llhttp__internal__n_chunk_size;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_9: {
+ s_n_llhttp__internal__n_error_23: {
state->error = 0xc;
state->reason = "Invalid character in chunk size";
state->error_pos = (const char*) p;
@@ -13758,7 +16031,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_11: {
+ s_n_llhttp__internal__n_error_25: {
state->error = 0xf;
state->reason = "Request has invalid `Transfer-Encoding`";
state->error_pos = (const char*) p;
@@ -13776,7 +16049,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_2: {
+ s_n_llhttp__internal__n_error_5: {
state->error = 0x12;
state->reason = "`on_message_complete` callback error";
state->error_pos = (const char*) p;
@@ -13792,7 +16065,7 @@ static llparse_state_t llhttp__internal__run(
case 21:
goto s_n_llhttp__internal__n_pause;
default:
- goto s_n_llhttp__internal__n_error_2;
+ goto s_n_llhttp__internal__n_error_5;
}
/* UNREACHABLE */;
abort();
@@ -13821,7 +16094,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_6: {
+ s_n_llhttp__internal__n_pause_12: {
state->error = 0x15;
state->reason = "Paused by on_headers_complete";
state->error_pos = (const char*) p;
@@ -13830,7 +16103,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_1: {
+ s_n_llhttp__internal__n_error_4: {
state->error = 0x11;
state->reason = "User callback error";
state->error_pos = (const char*) p;
@@ -13848,9 +16121,9 @@ static llparse_state_t llhttp__internal__run(
case 2:
goto s_n_llhttp__internal__n_invoke_update_upgrade;
case 21:
- goto s_n_llhttp__internal__n_pause_6;
+ goto s_n_llhttp__internal__n_pause_12;
default:
- goto s_n_llhttp__internal__n_error_1;
+ goto s_n_llhttp__internal__n_error_4;
}
/* UNREACHABLE */;
abort();
@@ -13863,10 +16136,10 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_1: {
- switch (llhttp__internal__c_test_lenient_flags_1(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_2: {
+ switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) {
case 0:
- goto s_n_llhttp__internal__n_error_12;
+ goto s_n_llhttp__internal__n_error_26;
default:
goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete;
}
@@ -13876,7 +16149,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_test_flags_1: {
switch (llhttp__internal__c_test_flags_1(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_1;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_2;
default:
goto s_n_llhttp__internal__n_invoke_llhttp__before_headers_complete;
}
@@ -13903,16 +16176,16 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_14;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_28;
return s_error;
}
p++;
- goto s_n_llhttp__internal__n_error_14;
+ goto s_n_llhttp__internal__n_error_28;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_2: {
- switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_3: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
case 1:
goto s_n_llhttp__internal__n_header_field_colon_discard_ws;
default:
@@ -13921,7 +16194,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_15: {
+ s_n_llhttp__internal__n_error_32: {
state->error = 0xb;
state->reason = "Empty Content-Length";
state->error_pos = (const char*) p;
@@ -13930,6 +16203,24 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_14: {
+ state->error = 0x15;
+ state->reason = "on_header_value_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_field_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_31: {
+ state->error = 0x1d;
+ state->reason = "`on_header_value_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_span_end_llhttp__on_header_value: {
const unsigned char* start;
int err;
@@ -13979,41 +16270,78 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_or_flags_6: {
- switch (llhttp__internal__c_or_flags_6(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_or_flags_6: {
+ switch (llhttp__internal__c_or_flags_6(state, p, endp)) {
+ default:
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_header_state_1: {
+ switch (llhttp__internal__c_load_header_state(state, p, endp)) {
+ case 5:
+ goto s_n_llhttp__internal__n_invoke_or_flags_3;
+ case 6:
+ goto s_n_llhttp__internal__n_invoke_or_flags_4;
+ case 7:
+ goto s_n_llhttp__internal__n_invoke_or_flags_5;
+ case 8:
+ goto s_n_llhttp__internal__n_invoke_or_flags_6;
+ default:
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_header_state: {
+ switch (llhttp__internal__c_load_header_state(state, p, endp)) {
+ case 2:
+ goto s_n_llhttp__internal__n_error_32;
+ default:
+ goto s_n_llhttp__internal__n_invoke_load_header_state_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_30: {
+ state->error = 0xa;
+ state->reason = "Invalid header value char";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_4: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_header_value_discard_lws;
default:
- goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value;
+ goto s_n_llhttp__internal__n_error_30;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_header_state_1: {
- switch (llhttp__internal__c_load_header_state(state, p, endp)) {
- case 5:
- goto s_n_llhttp__internal__n_invoke_or_flags_3;
- case 6:
- goto s_n_llhttp__internal__n_invoke_or_flags_4;
- case 7:
- goto s_n_llhttp__internal__n_invoke_or_flags_5;
- case 8:
- goto s_n_llhttp__internal__n_invoke_or_flags_6;
+ s_n_llhttp__internal__n_invoke_update_header_state_1: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_header_state: {
+ s_n_llhttp__internal__n_invoke_load_header_state_3: {
switch (llhttp__internal__c_load_header_state(state, p, endp)) {
- case 2:
- goto s_n_llhttp__internal__n_error_15;
+ case 8:
+ goto s_n_llhttp__internal__n_invoke_update_header_state_1;
default:
- goto s_n_llhttp__internal__n_invoke_load_header_state_1;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_header_value_1;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_1: {
+ s_n_llhttp__internal__n_invoke_update_header_state_2: {
switch (llhttp__internal__c_update_header_state(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_invoke_llhttp__on_header_value_complete;
@@ -14024,7 +16352,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_7: {
switch (llhttp__internal__c_or_flags_3(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_1;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_2;
}
/* UNREACHABLE */;
abort();
@@ -14032,7 +16360,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_8: {
switch (llhttp__internal__c_or_flags_4(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_1;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_2;
}
/* UNREACHABLE */;
abort();
@@ -14040,7 +16368,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_9: {
switch (llhttp__internal__c_or_flags_5(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_1;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_2;
}
/* UNREACHABLE */;
abort();
@@ -14053,7 +16381,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_header_state_3: {
+ s_n_llhttp__internal__n_invoke_load_header_state_4: {
switch (llhttp__internal__c_load_header_state(state, p, endp)) {
case 5:
goto s_n_llhttp__internal__n_invoke_or_flags_7;
@@ -14069,7 +16397,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_16: {
+ s_n_llhttp__internal__n_error_33: {
state->error = 0x3;
state->reason = "Missing expected LF after header value";
state->error_pos = (const char*) p;
@@ -14140,35 +16468,25 @@ static llparse_state_t llhttp__internal__run(
err = llhttp__on_header_value(state, start, p);
if (err != 0) {
state->error = err;
- state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_17;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_34;
return s_error;
}
- p++;
- goto s_n_llhttp__internal__n_error_17;
- /* UNREACHABLE */;
- abort();
- }
- s_n_llhttp__internal__n_error_18: {
- state->error = 0xa;
- state->reason = "Invalid header value char";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ goto s_n_llhttp__internal__n_error_34;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_3: {
- switch (llhttp__internal__c_test_lenient_flags_2(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_5: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
case 1:
goto s_n_llhttp__internal__n_header_value_lenient;
default:
- goto s_n_llhttp__internal__n_header_value_lenient_failed;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_2;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_3: {
+ s_n_llhttp__internal__n_invoke_update_header_state_4: {
switch (llhttp__internal__c_update_header_state(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection;
@@ -14179,7 +16497,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_11: {
switch (llhttp__internal__c_or_flags_3(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_4;
}
/* UNREACHABLE */;
abort();
@@ -14187,7 +16505,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_12: {
switch (llhttp__internal__c_or_flags_4(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_4;
}
/* UNREACHABLE */;
abort();
@@ -14195,7 +16513,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_13: {
switch (llhttp__internal__c_or_flags_5(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_3;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_4;
}
/* UNREACHABLE */;
abort();
@@ -14208,7 +16526,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_header_state_4: {
+ s_n_llhttp__internal__n_invoke_load_header_state_5: {
switch (llhttp__internal__c_load_header_state(state, p, endp)) {
case 5:
goto s_n_llhttp__internal__n_invoke_or_flags_11;
@@ -14224,32 +16542,32 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_4: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_5: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_token;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_2: {
- switch (llhttp__internal__c_update_header_state_2(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_3: {
+ switch (llhttp__internal__c_update_header_state_3(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_ws;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_5: {
- switch (llhttp__internal__c_update_header_state_5(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_6: {
+ switch (llhttp__internal__c_update_header_state_6(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_ws;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_6: {
- switch (llhttp__internal__c_update_header_state_6(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_7: {
+ switch (llhttp__internal__c_update_header_state_7(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_connection_ws;
}
@@ -14266,10 +16584,10 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_20;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_36;
return s_error;
}
- goto s_n_llhttp__internal__n_error_20;
+ goto s_n_llhttp__internal__n_error_36;
/* UNREACHABLE */;
abort();
}
@@ -14301,14 +16619,14 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_21;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_37;
return s_error;
}
- goto s_n_llhttp__internal__n_error_21;
+ goto s_n_llhttp__internal__n_error_37;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_19: {
+ s_n_llhttp__internal__n_error_35: {
state->error = 0x4;
state->reason = "Duplicate Content-Length";
state->error_pos = (const char*) p;
@@ -14322,7 +16640,7 @@ static llparse_state_t llhttp__internal__run(
case 0:
goto s_n_llhttp__internal__n_header_value_content_length;
default:
- goto s_n_llhttp__internal__n_error_19;
+ goto s_n_llhttp__internal__n_error_35;
}
/* UNREACHABLE */;
abort();
@@ -14337,16 +16655,16 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_23;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_39;
return s_error;
}
p++;
- goto s_n_llhttp__internal__n_error_23;
+ goto s_n_llhttp__internal__n_error_39;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_7: {
- switch (llhttp__internal__c_update_header_state_7(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_8: {
+ switch (llhttp__internal__c_update_header_state_8(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value_otherwise;
}
@@ -14363,16 +16681,16 @@ static llparse_state_t llhttp__internal__run(
if (err != 0) {
state->error = err;
state->error_pos = (const char*) (p + 1);
- state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_22;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_38;
return s_error;
}
p++;
- goto s_n_llhttp__internal__n_error_22;
+ goto s_n_llhttp__internal__n_error_38;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_4: {
- switch (llhttp__internal__c_test_lenient_flags_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_6: {
+ switch (llhttp__internal__c_test_lenient_flags_6(state, p, endp)) {
case 0:
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_7;
default:
@@ -14384,15 +16702,15 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_type_1: {
switch (llhttp__internal__c_load_type(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_4;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_6;
default:
goto s_n_llhttp__internal__n_header_value_te_chunked;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_8: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_9: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_value;
}
@@ -14415,8 +16733,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_test_lenient_flags_5: {
- switch (llhttp__internal__c_test_lenient_flags_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_7: {
+ switch (llhttp__internal__c_test_lenient_flags_6(state, p, endp)) {
case 0:
goto s_n_llhttp__internal__n_span_end_llhttp__on_header_value_8;
default:
@@ -14428,7 +16746,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_type_2: {
switch (llhttp__internal__c_load_type(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_invoke_test_lenient_flags_5;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_7;
default:
goto s_n_llhttp__internal__n_invoke_or_flags_17;
}
@@ -14456,7 +16774,7 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_or_flags_18: {
switch (llhttp__internal__c_or_flags_18(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_invoke_update_header_state_8;
+ goto s_n_llhttp__internal__n_invoke_update_header_state_9;
}
/* UNREACHABLE */;
abort();
@@ -14477,6 +16795,24 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_15: {
+ state->error = 0x15;
+ state->reason = "on_header_field_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_header_value_discard_ws;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_29: {
+ state->error = 0x1c;
+ state->reason = "`on_header_field_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_span_end_llhttp__on_header_field_1: {
const unsigned char* start;
int err;
@@ -14513,7 +16849,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_24: {
+ s_n_llhttp__internal__n_error_40: {
state->error = 0xa;
state->reason = "Invalid header token";
state->error_pos = (const char*) p;
@@ -14522,8 +16858,8 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_9: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_10: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_field_general;
}
@@ -14538,18 +16874,59 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_header_state_10: {
- switch (llhttp__internal__c_update_header_state_4(state, p, endp)) {
+ s_n_llhttp__internal__n_invoke_update_header_state_11: {
+ switch (llhttp__internal__c_update_header_state_1(state, p, endp)) {
default:
goto s_n_llhttp__internal__n_header_field_general;
}
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_error_3: {
+ state->error = 0x1e;
+ state->reason = "Unexpected space after start line";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags: {
+ switch (llhttp__internal__c_test_lenient_flags(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_header_field_start;
+ default:
+ goto s_n_llhttp__internal__n_error_3;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_pause_16: {
+ state->error = 0x15;
+ state->reason = "on_url_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_headers_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_2: {
+ state->error = 0x1a;
+ state->reason = "`on_url_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_llhttp__on_url_complete: {
switch (llhttp__on_url_complete(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_headers_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_16;
default:
- goto s_n_llhttp__internal__n_header_field_start;
+ goto s_n_llhttp__internal__n_error_2;
}
/* UNREACHABLE */;
abort();
@@ -14587,7 +16964,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_25: {
+ s_n_llhttp__internal__n_error_41: {
state->error = 0x7;
state->reason = "Expected CRLF";
state->error_pos = (const char*) p;
@@ -14613,7 +16990,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_28: {
+ s_n_llhttp__internal__n_error_47: {
state->error = 0x17;
state->reason = "Pause on PRI/Upgrade";
state->error_pos = (const char*) p;
@@ -14622,7 +16999,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_29: {
+ s_n_llhttp__internal__n_error_48: {
state->error = 0x9;
state->reason = "Expected HTTP/2 Connection Preface";
state->error_pos = (const char*) p;
@@ -14631,7 +17008,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_27: {
+ s_n_llhttp__internal__n_error_46: {
state->error = 0x9;
state->reason = "Expected CRLF after version";
state->error_pos = (const char*) p;
@@ -14640,12 +17017,110 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_load_method_1: {
- switch (llhttp__internal__c_load_method(state, p, endp)) {
- case 34:
- goto s_n_llhttp__internal__n_req_pri_upgrade;
+ s_n_llhttp__internal__n_pause_17: {
+ state->error = 0x15;
+ state->reason = "on_version_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_load_method_1;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_45: {
+ state->error = 0x21;
+ state->reason = "`on_version_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_version_complete;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_version_complete;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_44;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_44;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 9:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_1: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_2: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_major: {
+ switch (llhttp__internal__c_load_http_major(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor;
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_1;
+ case 2:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_2;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_8: {
+ switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_1;
default:
- goto s_n_llhttp__internal__n_req_http_complete;
+ goto s_n_llhttp__internal__n_invoke_load_http_major;
}
/* UNREACHABLE */;
abort();
@@ -14653,26 +17128,42 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_store_http_minor: {
switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) {
default:
- goto s_n_llhttp__internal__n_invoke_load_method_1;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_8;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_30: {
- state->error = 0x9;
- state->reason = "Invalid minor version";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_49;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_49;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_31: {
- state->error = 0x9;
- state->reason = "Expected dot";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_3: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_50;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_50;
/* UNREACHABLE */;
abort();
}
@@ -14684,16 +17175,24 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_32: {
- state->error = 0x9;
- state->reason = "Invalid major version";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_4: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_51;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_51;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_26: {
+ s_n_llhttp__internal__n_error_43: {
state->error = 0x8;
state->reason = "Invalid method for HTTP/x.x request";
state->error_pos = (const char*) p;
@@ -14705,82 +17204,82 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_method: {
switch (llhttp__internal__c_load_method(state, p, endp)) {
case 0:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 1:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 2:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 3:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 4:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 5:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 6:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 7:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 8:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 9:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 10:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 11:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 12:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 13:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 14:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 15:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 16:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 17:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 18:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 19:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 20:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 21:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 22:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 23:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 24:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 25:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 26:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 27:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 28:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 29:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 30:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 31:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 32:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 33:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 34:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
default:
- goto s_n_llhttp__internal__n_error_26;
+ goto s_n_llhttp__internal__n_error_43;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_35: {
+ s_n_llhttp__internal__n_error_54: {
state->error = 0x8;
state->reason = "Expected HTTP/";
state->error_pos = (const char*) p;
@@ -14789,7 +17288,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_33: {
+ s_n_llhttp__internal__n_error_52: {
state->error = 0x8;
state->reason = "Expected SOURCE method for ICE/x.x request";
state->error_pos = (const char*) p;
@@ -14801,14 +17300,14 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_method_2: {
switch (llhttp__internal__c_load_method(state, p, endp)) {
case 33:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
default:
- goto s_n_llhttp__internal__n_error_33;
+ goto s_n_llhttp__internal__n_error_52;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_34: {
+ s_n_llhttp__internal__n_error_53: {
state->error = 0x8;
state->reason = "Invalid method for RTSP/x.x request";
state->error_pos = (const char*) p;
@@ -14820,43 +17319,65 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_load_method_3: {
switch (llhttp__internal__c_load_method(state, p, endp)) {
case 1:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 3:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 6:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 35:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 36:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 37:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 38:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 39:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 40:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 41:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 42:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 43:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 44:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
case 45:
- goto s_n_llhttp__internal__n_req_http_major;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_version;
default:
- goto s_n_llhttp__internal__n_error_34;
+ goto s_n_llhttp__internal__n_error_53;
}
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_18: {
+ state->error = 0x15;
+ state->reason = "on_url_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_http_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_42: {
+ state->error = 0x1a;
+ state->reason = "`on_url_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_llhttp__on_url_complete_1: {
switch (llhttp__on_url_complete(state, p, endp)) {
- default:
+ case 0:
goto s_n_llhttp__internal__n_req_http_start;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_18;
+ default:
+ goto s_n_llhttp__internal__n_error_42;
}
/* UNREACHABLE */;
abort();
@@ -14929,7 +17450,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_36: {
+ s_n_llhttp__internal__n_error_55: {
state->error = 0x7;
state->reason = "Invalid char in url fragment start";
state->error_pos = (const char*) p;
@@ -14989,7 +17510,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_37: {
+ s_n_llhttp__internal__n_error_56: {
state->error = 0x7;
state->reason = "Invalid char in url query";
state->error_pos = (const char*) p;
@@ -14998,7 +17519,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_38: {
+ s_n_llhttp__internal__n_error_57: {
state->error = 0x7;
state->reason = "Invalid char in url path";
state->error_pos = (const char*) p;
@@ -15109,7 +17630,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_39: {
+ s_n_llhttp__internal__n_error_58: {
state->error = 0x7;
state->reason = "Double @ in url";
state->error_pos = (const char*) p;
@@ -15118,7 +17639,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_40: {
+ s_n_llhttp__internal__n_error_59: {
state->error = 0x7;
state->reason = "Unexpected char in url server";
state->error_pos = (const char*) p;
@@ -15127,7 +17648,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_41: {
+ s_n_llhttp__internal__n_error_60: {
state->error = 0x7;
state->reason = "Unexpected char in url server";
state->error_pos = (const char*) p;
@@ -15136,7 +17657,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_43: {
+ s_n_llhttp__internal__n_error_62: {
state->error = 0x7;
state->reason = "Unexpected char in url schema";
state->error_pos = (const char*) p;
@@ -15145,7 +17666,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_44: {
+ s_n_llhttp__internal__n_error_63: {
state->error = 0x7;
state->reason = "Unexpected char in url schema";
state->error_pos = (const char*) p;
@@ -15154,7 +17675,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_45: {
+ s_n_llhttp__internal__n_error_64: {
state->error = 0x7;
state->reason = "Unexpected start char in url";
state->error_pos = (const char*) p;
@@ -15173,7 +17694,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_46: {
+ s_n_llhttp__internal__n_error_65: {
state->error = 0x6;
state->reason = "Expected space after method";
state->error_pos = (const char*) p;
@@ -15182,15 +17703,50 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_22: {
+ state->error = 0x15;
+ state->reason = "on_method_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_first_space_before_url;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_76: {
+ state->error = 0x20;
+ state->reason = "`on_method_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_method_2: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_method(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_method_complete_1;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_store_method_1: {
switch (llhttp__internal__c_store_method(state, p, endp, match)) {
default:
- goto s_n_llhttp__internal__n_req_first_space_before_url;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_method_2;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_54: {
+ s_n_llhttp__internal__n_error_77: {
state->error = 0x6;
state->reason = "Invalid method encountered";
state->error_pos = (const char*) p;
@@ -15199,7 +17755,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_47: {
+ s_n_llhttp__internal__n_error_68: {
state->error = 0xd;
state->reason = "Response overflow";
state->error_pos = (const char*) p;
@@ -15211,13 +17767,31 @@ static llparse_state_t llhttp__internal__run(
s_n_llhttp__internal__n_invoke_mul_add_status_code: {
switch (llhttp__internal__c_mul_add_status_code(state, p, endp, match)) {
case 1:
- goto s_n_llhttp__internal__n_error_47;
+ goto s_n_llhttp__internal__n_error_68;
default:
goto s_n_llhttp__internal__n_res_status_code;
}
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_20: {
+ state->error = 0x15;
+ state->reason = "on_status_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_headers_start;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_69: {
+ state->error = 0x1b;
+ state->reason = "`on_status_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_span_end_llhttp__on_status: {
const unsigned char* start;
int err;
@@ -15254,7 +17828,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_48: {
+ s_n_llhttp__internal__n_error_70: {
state->error = 0xd;
state->reason = "Invalid response status";
state->error_pos = (const char*) p;
@@ -15271,7 +17845,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_49: {
+ s_n_llhttp__internal__n_error_71: {
state->error = 0x9;
state->reason = "Expected space after version";
state->error_pos = (const char*) p;
@@ -15280,29 +17854,153 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_pause_21: {
+ state->error = 0x15;
+ state->reason = "on_version_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_res_after_version;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_67: {
+ state->error = 0x21;
+ state->reason = "`on_version_complete` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_6: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_version_complete_1;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_5: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_66;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_66;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_3: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 9:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_4: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_minor_5: {
+ switch (llhttp__internal__c_load_http_minor(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_http_major_1: {
+ switch (llhttp__internal__c_load_http_major(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_3;
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_4;
+ case 2:
+ goto s_n_llhttp__internal__n_invoke_load_http_minor_5;
+ default:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_5;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_test_lenient_flags_9: {
+ switch (llhttp__internal__c_test_lenient_flags_8(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_version_6;
+ default:
+ goto s_n_llhttp__internal__n_invoke_load_http_major_1;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_store_http_minor_1: {
switch (llhttp__internal__c_store_http_minor(state, p, endp, match)) {
default:
- goto s_n_llhttp__internal__n_res_http_end;
+ goto s_n_llhttp__internal__n_invoke_test_lenient_flags_9;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_50: {
- state->error = 0x9;
- state->reason = "Invalid minor version";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_7: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_72;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_72;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_51: {
- state->error = 0x9;
- state->reason = "Expected dot";
- state->error_pos = (const char*) p;
- state->_current = (void*) (intptr_t) s_error;
- return s_error;
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_8: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_73;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_73;
/* UNREACHABLE */;
abort();
}
@@ -15314,28 +18012,71 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_52: {
- state->error = 0x9;
- state->reason = "Invalid major version";
+ s_n_llhttp__internal__n_span_end_llhttp__on_version_9: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_version(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_error_74;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_error_74;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_78: {
+ state->error = 0x8;
+ state->reason = "Expected HTTP/";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_55: {
- state->error = 0x8;
- state->reason = "Expected HTTP/";
+ s_n_llhttp__internal__n_pause_19: {
+ state->error = 0x15;
+ state->reason = "on_method_complete pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_req_first_space_before_url;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_1: {
+ state->error = 0x20;
+ state->reason = "`on_method_complete` callback error";
state->error_pos = (const char*) p;
state->_current = (void*) (intptr_t) s_error;
return s_error;
/* UNREACHABLE */;
abort();
}
+ s_n_llhttp__internal__n_span_end_llhttp__on_method: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_method(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_llhttp__on_method_complete;
+ return s_error;
+ }
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_method_complete;
+ /* UNREACHABLE */;
+ abort();
+ }
s_n_llhttp__internal__n_invoke_update_type: {
switch (llhttp__internal__c_update_type(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_req_first_space_before_url;
+ goto s_n_llhttp__internal__n_span_end_llhttp__on_method;
}
/* UNREACHABLE */;
abort();
@@ -15348,7 +18089,7 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_error_53: {
+ s_n_llhttp__internal__n_error_75: {
state->error = 0x8;
state->reason = "Invalid word encountered";
state->error_pos = (const char*) p;
@@ -15357,23 +18098,32 @@ static llparse_state_t llhttp__internal__run(
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_type_1: {
- switch (llhttp__internal__c_update_type_1(state, p, endp)) {
- default:
- goto s_n_llhttp__internal__n_res_http_major;
+ s_n_llhttp__internal__n_span_end_llhttp__on_method_1: {
+ const unsigned char* start;
+ int err;
+
+ start = state->_span_pos0;
+ state->_span_pos0 = NULL;
+ err = llhttp__on_method(state, start, p);
+ if (err != 0) {
+ state->error = err;
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_type_1;
+ return s_error;
}
+ goto s_n_llhttp__internal__n_invoke_update_type_1;
/* UNREACHABLE */;
abort();
}
s_n_llhttp__internal__n_invoke_update_type_2: {
switch (llhttp__internal__c_update_type(state, p, endp)) {
default:
- goto s_n_llhttp__internal__n_start_req;
+ goto s_n_llhttp__internal__n_span_start_llhttp__on_method_1;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_pause_8: {
+ s_n_llhttp__internal__n_pause_23: {
state->error = 0x15;
state->reason = "on_message_begin pause";
state->error_pos = (const char*) p;
@@ -15396,17 +18146,49 @@ static llparse_state_t llhttp__internal__run(
case 0:
goto s_n_llhttp__internal__n_invoke_load_type;
case 21:
- goto s_n_llhttp__internal__n_pause_8;
+ goto s_n_llhttp__internal__n_pause_23;
default:
goto s_n_llhttp__internal__n_error;
}
/* UNREACHABLE */;
abort();
}
- s_n_llhttp__internal__n_invoke_update_finish: {
- switch (llhttp__internal__c_update_finish(state, p, endp)) {
+ s_n_llhttp__internal__n_pause_24: {
+ state->error = 0x15;
+ state->reason = "on_reset pause";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_n_llhttp__internal__n_invoke_update_finish;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_error_79: {
+ state->error = 0x1f;
+ state->reason = "`on_reset` callback error";
+ state->error_pos = (const char*) p;
+ state->_current = (void*) (intptr_t) s_error;
+ return s_error;
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_llhttp__on_reset: {
+ switch (llhttp__on_reset(state, p, endp)) {
+ case 0:
+ goto s_n_llhttp__internal__n_invoke_update_finish;
+ case 21:
+ goto s_n_llhttp__internal__n_pause_24;
+ default:
+ goto s_n_llhttp__internal__n_error_79;
+ }
+ /* UNREACHABLE */;
+ abort();
+ }
+ s_n_llhttp__internal__n_invoke_load_initial_message_completed: {
+ switch (llhttp__internal__c_load_initial_message_completed(state, p, endp)) {
+ case 1:
+ goto s_n_llhttp__internal__n_invoke_llhttp__on_reset;
default:
- goto s_n_llhttp__internal__n_invoke_llhttp__on_message_begin;
+ goto s_n_llhttp__internal__n_invoke_update_finish;
}
/* UNREACHABLE */;
abort();
diff --git a/lib/llhttp/llhttp.h b/lib/llhttp/llhttp.h
index c9f1251c..88ef85df 100644
--- a/lib/llhttp/llhttp.h
+++ b/lib/llhttp/llhttp.h
@@ -1,9 +1,9 @@
#ifndef INCLUDE_LLHTTP_H_
#define INCLUDE_LLHTTP_H_
-#define LLHTTP_VERSION_MAJOR 6
-#define LLHTTP_VERSION_MINOR 0
-#define LLHTTP_VERSION_PATCH 7
+#define LLHTTP_VERSION_MAJOR 8
+#define LLHTTP_VERSION_MINOR 1
+#define LLHTTP_VERSION_PATCH 0
#ifndef LLHTTP_STRICT_MODE
# define LLHTTP_STRICT_MODE 0
@@ -38,6 +38,7 @@ struct llhttp__internal_s {
uint8_t finish;
uint16_t flags;
uint16_t status_code;
+ uint8_t initial_message_completed;
void* settings;
};
@@ -62,6 +63,7 @@ enum llhttp_errno {
HPE_CR_EXPECTED = 25,
HPE_LF_EXPECTED = 3,
HPE_UNEXPECTED_CONTENT_LENGTH = 4,
+ HPE_UNEXPECTED_SPACE = 30,
HPE_CLOSED_CONNECTION = 5,
HPE_INVALID_METHOD = 6,
HPE_INVALID_URL = 7,
@@ -81,7 +83,16 @@ enum llhttp_errno {
HPE_PAUSED = 21,
HPE_PAUSED_UPGRADE = 22,
HPE_PAUSED_H2_UPGRADE = 23,
- HPE_USER = 24
+ HPE_USER = 24,
+ HPE_CB_URL_COMPLETE = 26,
+ HPE_CB_STATUS_COMPLETE = 27,
+ HPE_CB_METHOD_COMPLETE = 32,
+ HPE_CB_VERSION_COMPLETE = 33,
+ HPE_CB_HEADER_FIELD_COMPLETE = 28,
+ HPE_CB_HEADER_VALUE_COMPLETE = 29,
+ HPE_CB_CHUNK_EXTENSION_NAME_COMPLETE = 34,
+ HPE_CB_CHUNK_EXTENSION_VALUE_COMPLETE = 35,
+ HPE_CB_RESET = 31
};
typedef enum llhttp_errno llhttp_errno_t;
@@ -102,7 +113,8 @@ enum llhttp_lenient_flags {
LENIENT_HEADERS = 0x1,
LENIENT_CHUNKED_LENGTH = 0x2,
LENIENT_KEEP_ALIVE = 0x4,
- LENIENT_TRANSFER_ENCODING = 0x8
+ LENIENT_TRANSFER_ENCODING = 0x8,
+ LENIENT_VERSION = 0x10
};
typedef enum llhttp_lenient_flags llhttp_lenient_flags_t;
@@ -170,6 +182,109 @@ enum llhttp_method {
};
typedef enum llhttp_method llhttp_method_t;
+enum llhttp_status {
+ HTTP_STATUS_CONTINUE = 100,
+ HTTP_STATUS_SWITCHING_PROTOCOLS = 101,
+ HTTP_STATUS_PROCESSING = 102,
+ HTTP_STATUS_EARLY_HINTS = 103,
+ HTTP_STATUS_RESPONSE_IS_STALE = 110,
+ HTTP_STATUS_REVALIDATION_FAILED = 111,
+ HTTP_STATUS_DISCONNECTED_OPERATION = 112,
+ HTTP_STATUS_HEURISTIC_EXPIRATION = 113,
+ HTTP_STATUS_MISCELLANEOUS_WARNING = 199,
+ HTTP_STATUS_OK = 200,
+ HTTP_STATUS_CREATED = 201,
+ HTTP_STATUS_ACCEPTED = 202,
+ HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION = 203,
+ HTTP_STATUS_NO_CONTENT = 204,
+ HTTP_STATUS_RESET_CONTENT = 205,
+ HTTP_STATUS_PARTIAL_CONTENT = 206,
+ HTTP_STATUS_MULTI_STATUS = 207,
+ HTTP_STATUS_ALREADY_REPORTED = 208,
+ HTTP_STATUS_TRANSFORMATION_APPLIED = 214,
+ HTTP_STATUS_IM_USED = 226,
+ HTTP_STATUS_MISCELLANEOUS_PERSISTENT_WARNING = 299,
+ HTTP_STATUS_MULTIPLE_CHOICES = 300,
+ HTTP_STATUS_MOVED_PERMANENTLY = 301,
+ HTTP_STATUS_FOUND = 302,
+ HTTP_STATUS_SEE_OTHER = 303,
+ HTTP_STATUS_NOT_MODIFIED = 304,
+ HTTP_STATUS_USE_PROXY = 305,
+ HTTP_STATUS_SWITCH_PROXY = 306,
+ HTTP_STATUS_TEMPORARY_REDIRECT = 307,
+ HTTP_STATUS_PERMANENT_REDIRECT = 308,
+ HTTP_STATUS_BAD_REQUEST = 400,
+ HTTP_STATUS_UNAUTHORIZED = 401,
+ HTTP_STATUS_PAYMENT_REQUIRED = 402,
+ HTTP_STATUS_FORBIDDEN = 403,
+ HTTP_STATUS_NOT_FOUND = 404,
+ HTTP_STATUS_METHOD_NOT_ALLOWED = 405,
+ HTTP_STATUS_NOT_ACCEPTABLE = 406,
+ HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED = 407,
+ HTTP_STATUS_REQUEST_TIMEOUT = 408,
+ HTTP_STATUS_CONFLICT = 409,
+ HTTP_STATUS_GONE = 410,
+ HTTP_STATUS_LENGTH_REQUIRED = 411,
+ HTTP_STATUS_PRECONDITION_FAILED = 412,
+ HTTP_STATUS_PAYLOAD_TOO_LARGE = 413,
+ HTTP_STATUS_URI_TOO_LONG = 414,
+ HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE = 415,
+ HTTP_STATUS_RANGE_NOT_SATISFIABLE = 416,
+ HTTP_STATUS_EXPECTATION_FAILED = 417,
+ HTTP_STATUS_IM_A_TEAPOT = 418,
+ HTTP_STATUS_PAGE_EXPIRED = 419,
+ HTTP_STATUS_ENHANCE_YOUR_CALM = 420,
+ HTTP_STATUS_MISDIRECTED_REQUEST = 421,
+ HTTP_STATUS_UNPROCESSABLE_ENTITY = 422,
+ HTTP_STATUS_LOCKED = 423,
+ HTTP_STATUS_FAILED_DEPENDENCY = 424,
+ HTTP_STATUS_TOO_EARLY = 425,
+ HTTP_STATUS_UPGRADE_REQUIRED = 426,
+ HTTP_STATUS_PRECONDITION_REQUIRED = 428,
+ HTTP_STATUS_TOO_MANY_REQUESTS = 429,
+ HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL = 430,
+ HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
+ HTTP_STATUS_LOGIN_TIMEOUT = 440,
+ HTTP_STATUS_NO_RESPONSE = 444,
+ HTTP_STATUS_RETRY_WITH = 449,
+ HTTP_STATUS_BLOCKED_BY_PARENTAL_CONTROL = 450,
+ HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS = 451,
+ HTTP_STATUS_CLIENT_CLOSED_LOAD_BALANCED_REQUEST = 460,
+ HTTP_STATUS_INVALID_X_FORWARDED_FOR = 463,
+ HTTP_STATUS_REQUEST_HEADER_TOO_LARGE = 494,
+ HTTP_STATUS_SSL_CERTIFICATE_ERROR = 495,
+ HTTP_STATUS_SSL_CERTIFICATE_REQUIRED = 496,
+ HTTP_STATUS_HTTP_REQUEST_SENT_TO_HTTPS_PORT = 497,
+ HTTP_STATUS_INVALID_TOKEN = 498,
+ HTTP_STATUS_CLIENT_CLOSED_REQUEST = 499,
+ HTTP_STATUS_INTERNAL_SERVER_ERROR = 500,
+ HTTP_STATUS_NOT_IMPLEMENTED = 501,
+ HTTP_STATUS_BAD_GATEWAY = 502,
+ HTTP_STATUS_SERVICE_UNAVAILABLE = 503,
+ HTTP_STATUS_GATEWAY_TIMEOUT = 504,
+ HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED = 505,
+ HTTP_STATUS_VARIANT_ALSO_NEGOTIATES = 506,
+ HTTP_STATUS_INSUFFICIENT_STORAGE = 507,
+ HTTP_STATUS_LOOP_DETECTED = 508,
+ HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED = 509,
+ HTTP_STATUS_NOT_EXTENDED = 510,
+ HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED = 511,
+ HTTP_STATUS_WEB_SERVER_UNKNOWN_ERROR = 520,
+ HTTP_STATUS_WEB_SERVER_IS_DOWN = 521,
+ HTTP_STATUS_CONNECTION_TIMEOUT = 522,
+ HTTP_STATUS_ORIGIN_IS_UNREACHABLE = 523,
+ HTTP_STATUS_TIMEOUT_OCCURED = 524,
+ HTTP_STATUS_SSL_HANDSHAKE_FAILED = 525,
+ HTTP_STATUS_INVALID_SSL_CERTIFICATE = 526,
+ HTTP_STATUS_RAILGUN_ERROR = 527,
+ HTTP_STATUS_SITE_IS_OVERLOADED = 529,
+ HTTP_STATUS_SITE_IS_FROZEN = 530,
+ HTTP_STATUS_IDENTITY_PROVIDER_AUTHENTICATION_ERROR = 561,
+ HTTP_STATUS_NETWORK_READ_TIMEOUT = 598,
+ HTTP_STATUS_NETWORK_CONNECT_TIMEOUT = 599
+};
+typedef enum llhttp_status llhttp_status_t;
+
#define HTTP_ERRNO_MAP(XX) \
XX(0, OK, OK) \
XX(1, INTERNAL, INTERNAL) \
@@ -177,6 +292,7 @@ typedef enum llhttp_method llhttp_method_t;
XX(25, CR_EXPECTED, CR_EXPECTED) \
XX(3, LF_EXPECTED, LF_EXPECTED) \
XX(4, UNEXPECTED_CONTENT_LENGTH, UNEXPECTED_CONTENT_LENGTH) \
+ XX(30, UNEXPECTED_SPACE, UNEXPECTED_SPACE) \
XX(5, CLOSED_CONNECTION, CLOSED_CONNECTION) \
XX(6, INVALID_METHOD, INVALID_METHOD) \
XX(7, INVALID_URL, INVALID_URL) \
@@ -197,6 +313,15 @@ typedef enum llhttp_method llhttp_method_t;
XX(22, PAUSED_UPGRADE, PAUSED_UPGRADE) \
XX(23, PAUSED_H2_UPGRADE, PAUSED_H2_UPGRADE) \
XX(24, USER, USER) \
+ XX(26, CB_URL_COMPLETE, CB_URL_COMPLETE) \
+ XX(27, CB_STATUS_COMPLETE, CB_STATUS_COMPLETE) \
+ XX(32, CB_METHOD_COMPLETE, CB_METHOD_COMPLETE) \
+ XX(33, CB_VERSION_COMPLETE, CB_VERSION_COMPLETE) \
+ XX(28, CB_HEADER_FIELD_COMPLETE, CB_HEADER_FIELD_COMPLETE) \
+ XX(29, CB_HEADER_VALUE_COMPLETE, CB_HEADER_VALUE_COMPLETE) \
+ XX(34, CB_CHUNK_EXTENSION_NAME_COMPLETE, CB_CHUNK_EXTENSION_NAME_COMPLETE) \
+ XX(35, CB_CHUNK_EXTENSION_VALUE_COMPLETE, CB_CHUNK_EXTENSION_VALUE_COMPLETE) \
+ XX(31, CB_RESET, CB_RESET) \
#define HTTP_METHOD_MAP(XX) \
@@ -302,6 +427,108 @@ typedef enum llhttp_method llhttp_method_t;
XX(45, FLUSH, FLUSH) \
+#define HTTP_STATUS_MAP(XX) \
+ XX(100, CONTINUE, CONTINUE) \
+ XX(101, SWITCHING_PROTOCOLS, SWITCHING_PROTOCOLS) \
+ XX(102, PROCESSING, PROCESSING) \
+ XX(103, EARLY_HINTS, EARLY_HINTS) \
+ XX(110, RESPONSE_IS_STALE, RESPONSE_IS_STALE) \
+ XX(111, REVALIDATION_FAILED, REVALIDATION_FAILED) \
+ XX(112, DISCONNECTED_OPERATION, DISCONNECTED_OPERATION) \
+ XX(113, HEURISTIC_EXPIRATION, HEURISTIC_EXPIRATION) \
+ XX(199, MISCELLANEOUS_WARNING, MISCELLANEOUS_WARNING) \
+ XX(200, OK, OK) \
+ XX(201, CREATED, CREATED) \
+ XX(202, ACCEPTED, ACCEPTED) \
+ XX(203, NON_AUTHORITATIVE_INFORMATION, NON_AUTHORITATIVE_INFORMATION) \
+ XX(204, NO_CONTENT, NO_CONTENT) \
+ XX(205, RESET_CONTENT, RESET_CONTENT) \
+ XX(206, PARTIAL_CONTENT, PARTIAL_CONTENT) \
+ XX(207, MULTI_STATUS, MULTI_STATUS) \
+ XX(208, ALREADY_REPORTED, ALREADY_REPORTED) \
+ XX(214, TRANSFORMATION_APPLIED, TRANSFORMATION_APPLIED) \
+ XX(226, IM_USED, IM_USED) \
+ XX(299, MISCELLANEOUS_PERSISTENT_WARNING, MISCELLANEOUS_PERSISTENT_WARNING) \
+ XX(300, MULTIPLE_CHOICES, MULTIPLE_CHOICES) \
+ XX(301, MOVED_PERMANENTLY, MOVED_PERMANENTLY) \
+ XX(302, FOUND, FOUND) \
+ XX(303, SEE_OTHER, SEE_OTHER) \
+ XX(304, NOT_MODIFIED, NOT_MODIFIED) \
+ XX(305, USE_PROXY, USE_PROXY) \
+ XX(306, SWITCH_PROXY, SWITCH_PROXY) \
+ XX(307, TEMPORARY_REDIRECT, TEMPORARY_REDIRECT) \
+ XX(308, PERMANENT_REDIRECT, PERMANENT_REDIRECT) \
+ XX(400, BAD_REQUEST, BAD_REQUEST) \
+ XX(401, UNAUTHORIZED, UNAUTHORIZED) \
+ XX(402, PAYMENT_REQUIRED, PAYMENT_REQUIRED) \
+ XX(403, FORBIDDEN, FORBIDDEN) \
+ XX(404, NOT_FOUND, NOT_FOUND) \
+ XX(405, METHOD_NOT_ALLOWED, METHOD_NOT_ALLOWED) \
+ XX(406, NOT_ACCEPTABLE, NOT_ACCEPTABLE) \
+ XX(407, PROXY_AUTHENTICATION_REQUIRED, PROXY_AUTHENTICATION_REQUIRED) \
+ XX(408, REQUEST_TIMEOUT, REQUEST_TIMEOUT) \
+ XX(409, CONFLICT, CONFLICT) \
+ XX(410, GONE, GONE) \
+ XX(411, LENGTH_REQUIRED, LENGTH_REQUIRED) \
+ XX(412, PRECONDITION_FAILED, PRECONDITION_FAILED) \
+ XX(413, PAYLOAD_TOO_LARGE, PAYLOAD_TOO_LARGE) \
+ XX(414, URI_TOO_LONG, URI_TOO_LONG) \
+ XX(415, UNSUPPORTED_MEDIA_TYPE, UNSUPPORTED_MEDIA_TYPE) \
+ XX(416, RANGE_NOT_SATISFIABLE, RANGE_NOT_SATISFIABLE) \
+ XX(417, EXPECTATION_FAILED, EXPECTATION_FAILED) \
+ XX(418, IM_A_TEAPOT, IM_A_TEAPOT) \
+ XX(419, PAGE_EXPIRED, PAGE_EXPIRED) \
+ XX(420, ENHANCE_YOUR_CALM, ENHANCE_YOUR_CALM) \
+ XX(421, MISDIRECTED_REQUEST, MISDIRECTED_REQUEST) \
+ XX(422, UNPROCESSABLE_ENTITY, UNPROCESSABLE_ENTITY) \
+ XX(423, LOCKED, LOCKED) \
+ XX(424, FAILED_DEPENDENCY, FAILED_DEPENDENCY) \
+ XX(425, TOO_EARLY, TOO_EARLY) \
+ XX(426, UPGRADE_REQUIRED, UPGRADE_REQUIRED) \
+ XX(428, PRECONDITION_REQUIRED, PRECONDITION_REQUIRED) \
+ XX(429, TOO_MANY_REQUESTS, TOO_MANY_REQUESTS) \
+ XX(430, REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL, REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL) \
+ XX(431, REQUEST_HEADER_FIELDS_TOO_LARGE, REQUEST_HEADER_FIELDS_TOO_LARGE) \
+ XX(440, LOGIN_TIMEOUT, LOGIN_TIMEOUT) \
+ XX(444, NO_RESPONSE, NO_RESPONSE) \
+ XX(449, RETRY_WITH, RETRY_WITH) \
+ XX(450, BLOCKED_BY_PARENTAL_CONTROL, BLOCKED_BY_PARENTAL_CONTROL) \
+ XX(451, UNAVAILABLE_FOR_LEGAL_REASONS, UNAVAILABLE_FOR_LEGAL_REASONS) \
+ XX(460, CLIENT_CLOSED_LOAD_BALANCED_REQUEST, CLIENT_CLOSED_LOAD_BALANCED_REQUEST) \
+ XX(463, INVALID_X_FORWARDED_FOR, INVALID_X_FORWARDED_FOR) \
+ XX(494, REQUEST_HEADER_TOO_LARGE, REQUEST_HEADER_TOO_LARGE) \
+ XX(495, SSL_CERTIFICATE_ERROR, SSL_CERTIFICATE_ERROR) \
+ XX(496, SSL_CERTIFICATE_REQUIRED, SSL_CERTIFICATE_REQUIRED) \
+ XX(497, HTTP_REQUEST_SENT_TO_HTTPS_PORT, HTTP_REQUEST_SENT_TO_HTTPS_PORT) \
+ XX(498, INVALID_TOKEN, INVALID_TOKEN) \
+ XX(499, CLIENT_CLOSED_REQUEST, CLIENT_CLOSED_REQUEST) \
+ XX(500, INTERNAL_SERVER_ERROR, INTERNAL_SERVER_ERROR) \
+ XX(501, NOT_IMPLEMENTED, NOT_IMPLEMENTED) \
+ XX(502, BAD_GATEWAY, BAD_GATEWAY) \
+ XX(503, SERVICE_UNAVAILABLE, SERVICE_UNAVAILABLE) \
+ XX(504, GATEWAY_TIMEOUT, GATEWAY_TIMEOUT) \
+ XX(505, HTTP_VERSION_NOT_SUPPORTED, HTTP_VERSION_NOT_SUPPORTED) \
+ XX(506, VARIANT_ALSO_NEGOTIATES, VARIANT_ALSO_NEGOTIATES) \
+ XX(507, INSUFFICIENT_STORAGE, INSUFFICIENT_STORAGE) \
+ XX(508, LOOP_DETECTED, LOOP_DETECTED) \
+ XX(509, BANDWIDTH_LIMIT_EXCEEDED, BANDWIDTH_LIMIT_EXCEEDED) \
+ XX(510, NOT_EXTENDED, NOT_EXTENDED) \
+ XX(511, NETWORK_AUTHENTICATION_REQUIRED, NETWORK_AUTHENTICATION_REQUIRED) \
+ XX(520, WEB_SERVER_UNKNOWN_ERROR, WEB_SERVER_UNKNOWN_ERROR) \
+ XX(521, WEB_SERVER_IS_DOWN, WEB_SERVER_IS_DOWN) \
+ XX(522, CONNECTION_TIMEOUT, CONNECTION_TIMEOUT) \
+ XX(523, ORIGIN_IS_UNREACHABLE, ORIGIN_IS_UNREACHABLE) \
+ XX(524, TIMEOUT_OCCURED, TIMEOUT_OCCURED) \
+ XX(525, SSL_HANDSHAKE_FAILED, SSL_HANDSHAKE_FAILED) \
+ XX(526, INVALID_SSL_CERTIFICATE, INVALID_SSL_CERTIFICATE) \
+ XX(527, RAILGUN_ERROR, RAILGUN_ERROR) \
+ XX(529, SITE_IS_OVERLOADED, SITE_IS_OVERLOADED) \
+ XX(530, SITE_IS_FROZEN, SITE_IS_FROZEN) \
+ XX(561, IDENTITY_PROVIDER_AUTHENTICATION_ERROR, IDENTITY_PROVIDER_AUTHENTICATION_ERROR) \
+ XX(598, NETWORK_READ_TIMEOUT, NETWORK_READ_TIMEOUT) \
+ XX(599, NETWORK_CONNECT_TIMEOUT, NETWORK_CONNECT_TIMEOUT) \
+
+
#ifdef __cplusplus
} /* extern "C" */
#endif
@@ -333,8 +560,12 @@ struct llhttp_settings_s {
/* Possible return values 0, -1, HPE_USER */
llhttp_data_cb on_url;
llhttp_data_cb on_status;
+ llhttp_data_cb on_method;
+ llhttp_data_cb on_version;
llhttp_data_cb on_header_field;
llhttp_data_cb on_header_value;
+ llhttp_data_cb on_chunk_extension_name;
+ llhttp_data_cb on_chunk_extension_value;
/* Possible return values:
* 0 - Proceed normally
@@ -352,6 +583,14 @@ struct llhttp_settings_s {
/* Possible return values 0, -1, `HPE_PAUSED` */
llhttp_cb on_message_complete;
+ llhttp_cb on_url_complete;
+ llhttp_cb on_status_complete;
+ llhttp_cb on_method_complete;
+ llhttp_cb on_version_complete;
+ llhttp_cb on_header_field_complete;
+ llhttp_cb on_header_value_complete;
+ llhttp_cb on_chunk_extension_name_complete;
+ llhttp_cb on_chunk_extension_value_complete;
/* When on_chunk_header is called, the current chunk length is stored
* in parser->content_length.
@@ -359,12 +598,7 @@ struct llhttp_settings_s {
*/
llhttp_cb on_chunk_header;
llhttp_cb on_chunk_complete;
-
- /* Information-only callbacks, return value is ignored */
- llhttp_cb on_url_complete;
- llhttp_cb on_status_complete;
- llhttp_cb on_header_field_complete;
- llhttp_cb on_header_value_complete;
+ llhttp_cb on_reset;
};
/* Initialize the parser with specific type and user settings.
@@ -514,6 +748,9 @@ const char* llhttp_errno_name(llhttp_errno_t err);
LLHTTP_EXPORT
const char* llhttp_method_name(llhttp_method_t method);
+/* Returns textual name of HTTP status */
+LLHTTP_EXPORT
+const char* llhttp_status_name(llhttp_status_t status);
/* Enables/disables lenient header value parsing (disabled by default).
*
@@ -553,6 +790,7 @@ void llhttp_set_lenient_chunked_length(llhttp_t* parser, int enabled);
*
* **(USE AT YOUR OWN RISK)**
*/
+LLHTTP_EXPORT
void llhttp_set_lenient_keep_alive(llhttp_t* parser, int enabled);
/* Enables/disables lenient handling of `Transfer-Encoding` header.
@@ -566,6 +804,7 @@ void llhttp_set_lenient_keep_alive(llhttp_t* parser, int enabled);
*
* **(USE AT YOUR OWN RISK)**
*/
+LLHTTP_EXPORT
void llhttp_set_lenient_transfer_encoding(llhttp_t* parser, int enabled);
#ifdef __cplusplus
diff --git a/lib/raop.c b/lib/raop.c
index 3b986f93..57ac40bf 100644
--- a/lib/raop.c
+++ b/lib/raop.c
@@ -359,7 +359,7 @@ static void
conn_destroy(void *ptr) {
raop_conn_t *conn = ptr;
- logger_log(conn->raop->logger, LOGGER_INFO, "Destroying connection");
+ logger_log(conn->raop->logger, LOGGER_DEBUG, "Destroying connection");
if (conn->raop->callbacks.conn_destroy) {
conn->raop->callbacks.conn_destroy(conn->raop->callbacks.cls);
diff --git a/uxplay.1 b/uxplay.1
index 09a56c71..b398d080 100644
--- a/uxplay.1
+++ b/uxplay.1
@@ -1,11 +1,11 @@
-.TH UXPLAY "1" "October 2022" "1.57" "User Commands"
+.TH UXPLAY "1" "November 2022" "1.58" "User Commands"
.SH NAME
uxplay \- start AirPlay server
.SH SYNOPSIS
.B uxplay
[\fI\,-n name\/\fR] [\fI\,-s wxh\/\fR] [\fI\,-p \/\fR[\fI\,n\/\fR]] [more \fI OPTIONS \/\fR ...]
.SH DESCRIPTION
-UxPlay 1.57: An open\-source AirPlay mirroring server based on RPiPlay
+UxPlay 1.58: An open\-source AirPlay mirroring server based on RPiPlay
.SH OPTIONS
.TP
.B
@@ -79,6 +79,8 @@ UxPlay 1.57: An open\-source AirPlay mirroring server based on RPiPlay
.TP
\fB\-nc\fR Do not close video window when client stops mirroring
.TP
+\fB\-nohold\fR Drop current connection when new client connects.
+.TP
\fB\-FPSdata\fR Show video-streaming performance reports sent by client.
.TP
\fB\-fps\fR n Set maximum allowed streaming framerate, default 30
diff --git a/uxplay.cpp b/uxplay.cpp
index b6b6129e..09e740e7 100644
--- a/uxplay.cpp
+++ b/uxplay.cpp
@@ -50,7 +50,7 @@
#include "renderers/video_renderer.h"
#include "renderers/audio_renderer.h"
-#define VERSION "1.57"
+#define VERSION "1.58"
#define DEFAULT_NAME "UxPlay"
#define DEFAULT_DEBUG_LOG false
@@ -111,6 +111,7 @@ static bool use_random_hw_addr = false;
static unsigned short display[5] = {0}, tcp[3] = {0}, udp[3] = {0};
static bool debug_log = DEFAULT_DEBUG_LOG;
static bool bt709_fix = false;
+static int max_connections = 2;
/* 95 byte png file with a 1x1 white square (single pixel): placeholder for coverart*/
static const unsigned char empty_image[] = {
@@ -416,7 +417,8 @@ static void print_info (char *name) {
printf("-as 0 (or -a) Turn audio off, streamed video only\n");
printf("-ca In Airplay Audio (ALAC) mode, write cover-art to file \n");
printf("-reset n Reset after 3n seconds client silence (default %d, 0=never)\n", NTP_TIMEOUT_LIMIT);
- printf("-nc do Not Close video window when client stops mirroring\n");
+ printf("-nc do Not Close video window when client stops mirroring\n");
+ printf("-nohold Drop current connection when new client connects.\n");
printf("-FPSdata Show video-streaming performance reports sent by client.\n");
printf("-fps n Set maximum allowed streaming framerate, default 30\n");
printf("-f {H|V|I}Horizontal|Vertical flip, or both=Inversion=rotate 180 deg\n");
@@ -763,8 +765,10 @@ void parse_arguments (int argc, char *argv[]) {
LOGE("option -ca must be followed by a filename for cover-art output");
exit(1);
}
- } else if (arg == "-bt709" ) {
+ } else if (arg == "-bt709") {
bt709_fix = true;
+ } else if (arg == "-nohold") {
+ max_connections = 3;
} else {
LOGE("unknown option %s, stopping\n",argv[i]);
exit(1);
@@ -945,15 +949,15 @@ int main (int argc, char *argv[]) {
extern "C" void conn_init (void *cls) {
open_connections++;
connections_stopped = false;
- LOGI("Open connections: %i", open_connections);
+ //LOGD("Open connections: %i", open_connections);
//video_renderer_update_background(1);
}
extern "C" void conn_destroy (void *cls) {
//video_renderer_update_background(-1);
open_connections--;
- LOGI("Open connections: %i", open_connections);
- if(!open_connections) {
+ //LOGD("Open connections: %i", open_connections);
+ if (!open_connections) {
connections_stopped = true;
}
}
@@ -1133,8 +1137,8 @@ int start_raop_server (std::vector hw_addr, std::string name, unsigned sho
raop_cbs.audio_set_metadata = audio_set_metadata;
raop_cbs.audio_set_coverart = audio_set_coverart;
- /* set max number of connections = 2 */
- raop = raop_init(2, &raop_cbs);
+ /* set max number of connections = 2 to protect against capture by new client */
+ raop = raop_init(max_connections, &raop_cbs);
if (raop == NULL) {
LOGE("Error initializing raop!");
return -1;