Class ReactiveHttpRequest


  • public final class ReactiveHttpRequest
    extends java.lang.Object
    An immutable reactive request to an http server.
    Author:
    Sergii Karpenko
    • Constructor Summary

      Constructors 
      Constructor Description
      ReactiveHttpRequest​(feign.MethodMetadata methodMetadata, feign.Target<?> target, java.net.URI uri, java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers, org.reactivestreams.Publisher<java.lang.Object> body)
      No parameters can be null except body.
      ReactiveHttpRequest​(ReactiveHttpRequest request, java.net.URI uri)  
      ReactiveHttpRequest​(ReactiveHttpRequest request, org.reactivestreams.Publisher<java.lang.Object> body)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.reactivestreams.Publisher<java.lang.Object> body()
      If present, this is the replayable body to send to the server.
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers()  
      java.lang.String method()  
      java.lang.String methodKey()  
      java.net.URI uri()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReactiveHttpRequest

        public ReactiveHttpRequest​(feign.MethodMetadata methodMetadata,
                                   feign.Target<?> target,
                                   java.net.URI uri,
                                   java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers,
                                   org.reactivestreams.Publisher<java.lang.Object> body)
        No parameters can be null except body. All parameters must be effectively immutable, via safe copies, not mutating or otherwise.
      • ReactiveHttpRequest

        public ReactiveHttpRequest​(ReactiveHttpRequest request,
                                   java.net.URI uri)
      • ReactiveHttpRequest

        public ReactiveHttpRequest​(ReactiveHttpRequest request,
                                   org.reactivestreams.Publisher<java.lang.Object> body)
    • Method Detail

      • method

        public java.lang.String method()
      • uri

        public java.net.URI uri()
      • headers

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headers()
      • body

        public org.reactivestreams.Publisher<java.lang.Object> body()
        If present, this is the replayable body to send to the server.
      • methodKey

        public java.lang.String methodKey()