adding header in data.getHeaders() appears better to me according to code flow in AbstractResource
On Thu, Apr 25, 2013 at 2:15 AM, vineet semwal <[email protected]>wrote: > both does the same thing ,however there are some internal headers so take > a look at them in AbstractResource,if your header is one of those you can't > use it manually > > > On Thu, Apr 25, 2013 at 1:24 AM, smallufo <[email protected]> wrote: > >> Hi >> I just take "Cache-Control":"no-cache" for example. >> What if I want to add additional header information, which is correct ? >> >> data.getHeaders().addHeader("key", "value"); ? >> or >> ((WebResponse) attributes.getResponse()).addHeader("key" , "value"); ? >> >> Thanks. >> > > > > -- > regards, > > Vineet Semwal > -- regards, Vineet Semwal
