Class HttpRequest


  • public class HttpRequest
    extends java.lang.Object
    Wrapper around an HTTP Request's URI, headers, and optional body
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpRequest​(java.net.URI uri, com.google.common.collect.ImmutableMultimap<java.lang.String,​java.lang.String> headers, java.lang.String entity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getEntity()  
      com.google.common.collect.ImmutableMultimap<java.lang.String,​java.lang.String> getHeaders()  
      java.net.URI getUri()  
      • Methods inherited from class java.lang.Object

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

      • HttpRequest

        public HttpRequest​(@Nonnull
                           java.net.URI uri,
                           @Nonnull
                           com.google.common.collect.ImmutableMultimap<java.lang.String,​java.lang.String> headers,
                           @Nullable
                           java.lang.String entity)
    • Method Detail

      • getUri

        @Nonnull
        public java.net.URI getUri()
      • getHeaders

        @Nonnull
        public com.google.common.collect.ImmutableMultimap<java.lang.String,​java.lang.String> getHeaders()
      • getEntity

        @Nonnull
        public java.util.Optional<java.lang.String> getEntity()