HomePhabricator
Diffusion Comm 8a9622970949

[lib] Use httpMessageUserInfosHandler

Description

[lib] Use httpMessageUserInfosHandler

Summary:
issue: ENG-7821
When I tried using endpointValidators in callSingleKeyserverEndpoint it created import cycles which are hard to fix. An explenation can be found here.
The bottom line is that I cannot import lib/types/validators/endpoint-validators.js from lib/keyserver-conn/call-single-keyserver-endpoint.js. So my workaroud is for lib/keyserver-conn/call-single-keyserver-endpoint.js to expose a function that lets some other place in the code insert the handler to it.

Test Plan: Tested that both web and native apps can be run and no errors are thrown. Tested that the handler correctly extracts user ids from http messages.

Reviewers: tomek, kamil, ashoat

Reviewed By: ashoat

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12073

Details

Provenance
inkaAuthored on May 20 2024, 2:21 AM
Reviewer
ashoat
Differential Revision
D12073: [lib] Use httpMessageUserInfosHandler
Parents
rCOMM93732b264eeb: [lib] Add httpMessageUserInfosHandler
Branches
Unknown
Tags
Unknown