You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the hte client to always send the req over the wire
The middleware can introspect the method that will be called, and check if it has a key called hte in it's schema, if not, it can remove it from the data and continue.
Downside is it will massively inflate the packet size of each request.
The text was updated successfully, but these errors were encountered:
What requirements will this solution have in the HT component (i.e. does it require knowledge in vanilla hudson-taylor of what the ht-express component is doing?
Sometimes it's useful being able to access properties of the client request (
ip
,cookies
etc) in the service doing the work.There's a few ways I think this can be done, all of them breaking. Can't think of any that aren't.
The best one that I've come up with so far is (on the ht service side)
Change the hte client to always send the
req
over the wireThe middleware can introspect the method that will be called, and check if it has a key called
hte
in it's schema, if not, it can remove it from the data and continue.Downside is it will massively inflate the packet size of each request.
The text was updated successfully, but these errors were encountered: