<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Marek,<div><br></div><div>It&#39;s about the client.</div><div>I put an implementation of HttpHeaders to the context data map, at the moment it is read-only [1, 2].</div><div><br></div><div>Thanks,</div><div>Michał</div><div><br></div></div><div><br></div><div>[1] <a href="https://github.com/smallrye/smallrye-rest-client/pull/44/commits/d8c6daf12248a4e1c5863746ad35b9c94f202483#diff-4302e637161b0d4c1d49d6ebed6d0735">https://github.com/smallrye/smallrye-rest-client/pull/44/commits/d8c6daf12248a4e1c5863746ad35b9c94f202483#diff-4302e637161b0d4c1d49d6ebed6d0735</a></div><div>[2] <a href="https://github.com/smallrye/smallrye-rest-client/pull/44/commits/d8c6daf12248a4e1c5863746ad35b9c94f202483#diff-31c2c61af4b77ac8ee35501111bea3baR99">https://github.com/smallrye/smallrye-rest-client/pull/44/commits/d8c6daf12248a4e1c5863746ad35b9c94f202483#diff-31c2c61af4b77ac8ee35501111bea3baR99</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 5, 2019 at 12:53 PM Marek Kopecky &lt;<a href="mailto:mkopecky@redhat.com">mkopecky@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hi.<br>
    </p>
    <p>Does MP Rest Client 1.2 TCK use @Context annotation on server
      side or on client side? I don&#39;t see @RunAsClient annotation there,
      but filter is added to the deployment [1].</p>
    <p>Injecting HttpHeaders into ClientRequestFilter works on server
      side, but doesn&#39;t work on client side in RESTEasy 3.6.2 and WF
      master. See also RESTEASY-2084 related jira [2].<br>
    </p>
    <p>Marek<br>
    </p>
    <p>[1]
<a class="gmail-m_3759915386079519810moz-txt-link-freetext" href="https://github.com/eclipse/microprofile-rest-client/blob/1.2/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/ClientHeadersFactoryTest.java#L41" target="_blank">https://github.com/eclipse/microprofile-rest-client/blob/1.2/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/ClientHeadersFactoryTest.java#L41</a><br>
      [2] <a class="gmail-m_3759915386079519810moz-txt-link-freetext" href="https://issues.jboss.org/browse/RESTEASY-2084" target="_blank">https://issues.jboss.org/browse/RESTEASY-2084</a><br>
    </p>
    <p><br>
    </p>
    <div class="gmail-m_3759915386079519810moz-cite-prefix">On 1/25/19 11:38 PM, Michal Szynkiewicz
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">Hi,
          <div><br>
          </div>
          <div>The MP Rest Client 1.2 TCK assumes the ${subject} should
            be possible but I&#39;m getting &quot;RESTEASY003880: Unable to find
            contextual data of type: javax.ws.rs.core.HttpHeaders&quot; when
            I try.</div>
          <div>I think it&#39;s possible to add an implementation of
            HttpHeaders to <span>ResteasyProviderFactory.</span><span>getContextDataMap</span><span>()</span>, and then make the
            headers from it populated to the request with a filter but
            is there a better way? Maybe some add-on that would make it
            work out of the box? ;)</div>
          <div><br>
          </div>
          <div>Thanks,</div>
          <div>Michał</div>
        </div>
      </div>
      <br>
      <fieldset class="gmail-m_3759915386079519810mimeAttachmentHeader"></fieldset>
      <pre class="gmail-m_3759915386079519810moz-quote-pre">_______________________________________________
resteasy-dev mailing list
<a class="gmail-m_3759915386079519810moz-txt-link-abbreviated" href="mailto:resteasy-dev@lists.jboss.org" target="_blank">resteasy-dev@lists.jboss.org</a>
<a class="gmail-m_3759915386079519810moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/resteasy-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/resteasy-dev</a>
</pre>
    </blockquote>
  </div>

_______________________________________________<br>
resteasy-dev mailing list<br>
<a href="mailto:resteasy-dev@lists.jboss.org" target="_blank">resteasy-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/resteasy-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/resteasy-dev</a><br>
</blockquote></div></div></div></div>