You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
First of all, this API is amazing! One single file and so much power :)
I would like to send compressed gzip content through POST and PUT requests (I send posts with tens or hundreds of objects, hence compression would be a great feature). I see the API does not support this by default.
How do you recommend doing this? I guess the best thing would be checking the headers and if 'Content-Encoding' contains 'gzip' --> uncompress before managing the data.
I would like to:
Either introduce this into my config file
Have it in the php-crud-api repo.
Otherwise, I would have a library/file that could not be updated anymore as easily.
I thought I could use the 'before' function but I see I wouldn't have access to the headers from there.
Please advice me about this.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
First of all, this API is amazing! One single file and so much power :)
I would like to send compressed gzip content through POST and PUT requests (I send posts with tens or hundreds of objects, hence compression would be a great feature). I see the API does not support this by default.
How do you recommend doing this? I guess the best thing would be checking the headers and if 'Content-Encoding' contains 'gzip' --> uncompress before managing the data.
I would like to:
Otherwise, I would have a library/file that could not be updated anymore as easily.
I thought I could use the 'before' function but I see I wouldn't have access to the headers from there.
Please advice me about this.
Thanks!
The text was updated successfully, but these errors were encountered: