|
|
|
|
|
by asalahli
2080 days ago
|
|
One thing I like about SCGI is how easy it is to determine the request size, compared to HTTP. You can parse first few bytes to get the size of the header section. Then the first header is required to be CONTENT_LENGTH, thought I'm not sure if all servers respect that requirement. Even if some don't, CONTENT_LENGTH is still guaranteed to be present. So you need at most two memory allocations to read the entire request into memory. |
|