Bug 453782 - Allow clients to set any request headers
Summary: Allow clients to set any request headers
Status: RESOLVED FIXED
Alias: None
Product: Lyo
Classification: Technology
Component: Client (show other bugs)
Version: 2.1.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 2.1.2   Edit
Assignee: Samuel Padgett CLA
QA Contact:
URL:
Whiteboard:
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2014-12-01 11:14 EST by Samuel Padgett CLA
Modified: 2017-02-28 17:18 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Padgett CLA 2014-12-01 11:14:57 EST
Right now, OslcClient does not give consumers any control over the request headers beyond the media type. Allow clients to set any request header by passing in a map to getResource().
Comment 1 Samuel Padgett CLA 2014-12-01 12:56:40 EST
Resolved by

    https://git.eclipse.org/r/37416

You can now make calls like this

    ChangeRequest bug =
        client.getResource("http://example.com/bugs/43",
                           Collections.singletonMap("Accept-Language", "da"))
              .getEntity(ChangeRequest.class);
Comment 2 Andrii Berezovskyi CLA 2017-02-28 17:18:42 EST
Will be released in 2.1.2.