Skip to content

feat: implement ohttp gateway middleware#1306

Open
Harshdev098 wants to merge 1 commit intopayjoin:masterfrom
Harshdev098:ohttpGateway-middleware
Open

feat: implement ohttp gateway middleware#1306
Harshdev098 wants to merge 1 commit intopayjoin:masterfrom
Harshdev098:ohttpGateway-middleware

Conversation

@Harshdev098
Copy link
Contributor

part of #941

added ohttp gateway middleware in payjoin-services.

Pull Request Checklist

Please confirm the following before requesting review:

@zealsham
Copy link
Collaborator

zealsham commented Feb 3, 2026

ThankS for working on this @Harshdev098. Ideally we would want this middleware to be written with axum so it would fit in with the rest of the middlwares we plan to add, @spacebear21 this is correct right ?

@spacebear21
Copy link
Collaborator

we would want this middleware to be written with axum so it would fit in with the rest of the middlwares we plan to add

Yes exactly. The gateway should be an axum middleware written mostly from scratch similar to @zealsham's ongoing work in #1296. Duplication could also be reduced by first making the helper utils (encapsulate_xxx, decapsulate_xxx, constants...) pub in the ohttp-relay crate and reusing them in payjoin-service.

@Harshdev098
Copy link
Contributor Author

okay will use axum in the middleware and update you!

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.

3 participants