This change allows consumers of go-dito/http to pass how many bytes of data
a single request may contain, thus accommodating different service's needs.
Tested the change by creating a simple main.go at the root of this project, like so:
This creates a server with a fixed, non-default (fasthttp's default is 4096 bytes), number of bytes allowed in the incoming request buffer. With that we can our server, passing a query-string ids that contains a lot of entries.
For example, using the default (omit the ReadBufferSize struct entry), the server allows close to 80 UUIDv4 ids. By changing it to ReadBufferSize: 20000, the server allows more than 500 UUIDv4 ids.
…server
This change allows consumers of go-dito/http to pass how many bytes of data a single request may contain, thus accommodating different service's needs.
Tested the change by creating a simple
main.go
at the root of this project, like so:This creates a server with a fixed, non-default (fasthttp's default is 4096 bytes), number of bytes allowed in the incoming request buffer. With that we can our server, passing a query-string
ids
that contains a lot of entries.For example, using the default (omit the
ReadBufferSize
struct entry), the server allows close to 80 UUIDv4ids
. By changing it toReadBufferSize: 20000
, the server allows more than 500 UUIDv4ids
.