Re: [Simpleweb-Support] How do I get the complete list of http headers that have a specific name
Brought to you by:
niallg
From: Vincent T. <vt...@gm...> - 2014-03-19 03:19:17
|
Thanks Niall, I missed that. I'm a bit confused when reading the javadoc of the different versions of this method. Here's what I understand: getValue(name) returns the header value for the first header with that name getValue(name, index) returns the value for the index header with that name getValues(name) returns the parsed tokens of the all headers with that name Am I correct ? When using the form with the index, how do I know how many headers exist with the same name? Thanks for you help, -- Vincent 2014-03-18 22:33 GMT-04:00 Niall Gallagher <gal...@ya...>: > See > http://www.simpleframework.org/doc/javadoc/org/simpleframework/http/RequestHeader.html#getValue(java.lang.String, > int) > -------------------------------------------- > On Tue, 18/3/14, Vincent Tencé <vt...@gm...> wrote: > > Subject: [Simpleweb-Support] How do I get the complete list of http > headers that have a specific name > To: sim...@li... > Received: Tuesday, 18 March, 2014, 3:25 PM > > Hi guys, > I'm trying to get the list of http headers > that have a specific name (in this case, I'm looking for > all Accept-Encoding headers). > The Request#getValues(name) method only return > headers that are acceptable. I need the complete list so > that I know why ones the client will not accept. How would > you do that? > > Thanks,-- Vincent > > > > -----Inline Attachment Follows----- > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph > databases and their > applications. Written by three acclaimed leaders in the > field, > this first edition is now available. Download your free book > today! > http://p.sf.net/sfu/13534_NeoTech > -----Inline Attachment Follows----- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |