Feature: support for user defined interceptors

Open
#267 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
api

Research direction

Start by reviewing the proposed implementation in PR #266, which is linked from the issue. Check how the client becomes generic over the interceptor type and how custom request headers are supported; done means user-defined interceptors can modify requests while the existing TokenInterceptor behavior remains supported.

Written by the indexing model from the issue text.

Description

Currently, Qdrant client only supports authentication via API key through the built-in TokenInterceptor. However, there are many scenarios where users need to add custom headers to requests like 'authorization' header for JWT

I've implemented a solution that makes the client generic over the interceptor type, allowing users to provide their own interceptors that can modify requests arbitrarily: https://github.com/qdrant/rust-client/pull/266

@timvisee

Dominant language
Rust
Stars
425
Forks
89
Avg merge
2h 48m
Merged PRs (30d)
3

Getting set up

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.

More from qdrant/rust-client

All issues in qdrant/rust-client

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.