src/Tus/Server.php
protected function handleHead() : HttpResponse
    {
        $key = $this->request->key();

        if ( ! $fileMeta = $this->cache->get($key)) {
            return $this->response->send(null, HttpResponse::HTTP_NOT_FOUND);
        }

        $offset = $fileMeta['offset'] ?? false;

        if (false === $offset) {
            return $this->response->send(null, HttpResponse::HTTP_GONE);
        }

        return $this->response->send(null, HttpResponse::HTTP_OK, $this->getHeadersForHeadRequest($fileMeta));
    }
protected function handleHead() : HttpResponse
    {
        $key = $this->request->key();

        if ( ! $fileMeta = $this->cache->get($key)) {
            return $this->response->send(null, HttpResponse::HTTP_NOT_FOUND);
        }

        $offset = $fileMeta['offset'] ?? false;

        if (false === $offset) {
            return $this->response->send(null, HttpResponse::HTTP_GONE);
        }

        return $this->response->send(null, HttpResponse::HTTP_OK, $this->getHeadersForHeadRequest($fileMeta));
    }
protected function handleHead ( ) : HttpResponse { $ key = $ this -> request -> key ( ) ; if ( ! $ fileMeta = $ this -> cache -> get ( $ key ) ) { return $ this -> response -> send ( null , HttpResponse :: HTTP_NOT_FOUND ) ; } $ offset = $ fileMeta [ 'offset' ] ?? false ; if ( false === $ offset ) { return $ this -> response -> send ( null , HttpResponse :: HTTP_GONE ) ; } return $ this -> response -> send ( null , HttpResponse :: HTTP_OK , $ this -> getHeadersForHeadRequest ( $ fileMeta ) ) ; }
Handle HEAD request.

@return HttpResponse
Handle HEAD request .