Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing API in Transport Context #82

Closed
sbernard31 opened this issue Apr 19, 2024 · 1 comment
Closed

Missing API in Transport Context #82

sbernard31 opened this issue Apr 19, 2024 · 1 comment

Comments

@sbernard31
Copy link
Collaborator

Implementing coap(s)+tcp in Leshan, I faced some issues that could be solve with API additions :
(I found workaround for each of them, so there is no urgency)

1. A way to iterate over keys of TransportContext

Maybe a Collection<Key<?>> getKeys() methods ? or make TransportContext implements Iterable ?

Here an example of usage.

2. I need to add all keys from a TransportContext to an other existing TransportContext.

Proposed API :

  • Adding to TransportContext a method with(TransportContext contextToMerge)
  • Adding a CoapRequest.Builder a method addContext(TransportContext contextToMerge)
@szysas
Copy link
Collaborator

szysas commented Apr 22, 2024

Those should be easy ones.. but lets see.

szysas added a commit that referenced this issue Apr 22, 2024
szysas added a commit that referenced this issue Apr 23, 2024
szysas added a commit that referenced this issue Aug 13, 2024
* GH-82 TransportContext: merge and key iterator
@szysas szysas closed this as completed Aug 13, 2024
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

No branches or pull requests

2 participants