src/Tus/Server.php
protected function handleOptions() : HttpResponse
    {
        $headers = [
            'Allow' => implode(',', $this->request->allowedHttpVerbs()),
            'Tus-Version' => self::TUS_PROTOCOL_VERSION,
            'Tus-Extension' => implode(',', self::TUS_EXTENSIONS),
            'Tus-Checksum-Algorithm' => $this->getSupportedHashAlgorithms(),
        ];

        $maxUploadSize = $this->getMaxUploadSize();

        if ($maxUploadSize > 0) {
            $headers['Tus-Max-Size'] = $maxUploadSize;
        }

        return $this->response->send(null, HttpResponse::HTTP_OK, $headers);
    }
protected function handleOptions() : HttpResponse
    {
        $headers = [
            'Allow' => implode(',', $this->request->allowedHttpVerbs()),
            'Tus-Version' => self::TUS_PROTOCOL_VERSION,
            'Tus-Extension' => implode(',', self::TUS_EXTENSIONS),
            'Tus-Checksum-Algorithm' => $this->getSupportedHashAlgorithms(),
        ];

        $maxUploadSize = $this->getMaxUploadSize();

        if ($maxUploadSize > 0) {
            $headers['Tus-Max-Size'] = $maxUploadSize;
        }

        return $this->response->send(null, HttpResponse::HTTP_OK, $headers);
    }
protected function handleOptions ( ) : HttpResponse { $ headers = [ 'Allow' => implode ( ',' , $ this -> request -> allowedHttpVerbs ( ) ) , 'Tus-Version' => self :: TUS_PROTOCOL_VERSION , 'Tus-Extension' => implode ( ',' , self :: TUS_EXTENSIONS ) , 'Tus-Checksum-Algorithm' => $ this -> getSupportedHashAlgorithms ( ) , ] ; $ maxUploadSize = $ this -> getMaxUploadSize ( ) ; if ( $ maxUploadSize > 0 ) { $ headers [ 'Tus-Max-Size' ] = $ maxUploadSize ; } return $ this -> response -> send ( null , HttpResponse :: HTTP_OK , $ headers ) ; }
Handle OPTIONS request.

@return HttpResponse
Handle OPTIONS request .