On Sat, May 20, 2017 at 10:12 AM, Oleg Kalnichevski <[email protected]> wrote:
> On Sat, 2017-05-20 at 09:52 -0700, Gary Gregory wrote: > > OK, cool, my next issue (in the same method) is that the verifier is > > NOT > > called for all requests, which is a bug for my use case. I can see > > that it > > is only called for HttpEntityEnclosingRequest so I cannot verify all > > requests coming in! > > > > Expect-continue handshake applies to entity enclosing methods only. > That is why I think changes you have made to HttpClient 4.6 is a > mistake. > Hi Oleg, OK, I see, so that change does not site well with 100 (Continue) Status. That should be back on the table then. But here, I'm not talking about 100 (Continue) Status, I'm talking about using HttpAsyncExpectationVerifier for the general case of "verifying" anything that comes in, not just the 100 use case. It's not clear to me based on the Javadoc for HttpAsyncExpectationVerifier that it exists solely to implement 100 (Continue) Status behavior. May you please clarify? Thank you, Gary > > --- > 8.2.3 Use of the 100 (Continue) Status > > The purpose of the 100 (Continue) status (see section 10.1.1) is to > allow a client that is sending a request message with a request body > to determine if the origin server is willing to accept the request > (based on the request headers) before the client sends the request > body. In some cases, it might either be inappropriate or highly > inefficient for the client to send the body if the server will > reject > the message without looking at the body. > --- > > Nevertheless you can make any HTTP method an entity enclosing one if > you wish so by using a custom HttpRequestFactory instead of the default > one > > https://github.com/apache/httpcomponents-core/blob/4.4.x/httpcore/src/m > ain/java/org/apache/http/impl/DefaultHttpRequestFactory.java > > Oleg > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> JUnit in Action, Second Edition <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> Spring Batch in Action <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
