meilisearch / meilisearch/meilisearch-php

Add option to pass headers directly in the Client builder - For example to easily pass X-MS-USER-ID

Open
#720 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
757
Forks
125
Avg merge
6d 8h
Merged PRs (30d)
2

Description

Description
I need to pass X-MS-USER-ID to track my user because I use search in my backend and not my front end. No easy way to pass them at Meilisearch Client build. And I do not want to pass a Guzzle client at build time.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the PHP Client builder and the existing path for supplying a Guzzle client. Determine how request headers are currently configured, then define the direct-header option requested for X-MS-USER-ID without removing Guzzle client support. Done means callers can pass headers while building the Meilisearch Client.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
api, backend-api-design
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.