Skip to content

Рефакторинг класса SearchAPIClient для поиска #1329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

monochromer
Copy link
Contributor

Правки:

  1. Удаление настроек по умолчанию для Algolia, которая давно не используется
  2. Использование http-метода GET вместо POST, так как лучше подходит по своей семантике получения данных и добавляет возможность кэширования результатов поиска в будущем
  3. Удаляет задание заголовка Origin, так как его перепишет браузер на действительный
  4. Упрощает сериализацию url в строку: знак ? будет проставляться сам

@furtivite
Copy link
Member

@monochromer, я очень рад тебя снова видеть в репозитории)

Copy link
Member

@solarrust solarrust left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ♥️

Copy link

github-actions bot commented May 4, 2025

Превью контента из 9f106bb опубликовано.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants