Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Http request header with multiple values

16 views
Skip to first unread message

E. Ulrich Kriegel

unread,
Apr 2, 2025, 11:17:05 AMApr 2
to vert.x
Hi there,
RFC 2616 defines a comma as the separator for multiple values in a header field. Alternatively, it is possible, to use a certain header multiple times containing a single value each.
Let headers be a MultiMap 
The second approach works well, headers.getAll(Name) provides a list wit the single values.

If one uses comma-seperated values, headers.getAll(name) returns a list of one element containing the comma-separated values, tests using contains-operation fail.

Does Vertx do not support comma-separated values.

Vertx 5.1.13, MacOS Sequoia

Thomas SEGISMONT

unread,
Apr 3, 2025, 6:11:34 AMApr 3
to ve...@googlegroups.com
Hi

I don't believe it is supported at this moment.

As a workaround, I think you can call io.netty.util.internal.StringUtil#unescapeCsvFields to split the values

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/vertx/11d50efc-3a5e-4545-9995-a99907df7374n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages