The HTTP PUT request method is used to write data to a resource on the server.
The PUT() method is called by the base class with the following elements of
its parameter array filled:
- • 'path': the resource the received data should be put into
- • 'content_length': the number of bytes transfered
- • 'content_type': the content type of the data transfered
- • 'stream': a PHP stream you can read the actual data from
- • 'ranges': an array of byte range specifications to be written on partial requests
As with the GET() method you may either handle a PUT request yourself or just return
a writable stream and have the base class write to it.