Class EndpointRequestHeaders

java.lang.Object
com.ngrok.definitions.EndpointRequestHeaders

public class EndpointRequestHeaders extends Object
A class encapsulating the EndpointRequestHeaders resource.
  • Method Details

    • newBuilder

      public static EndpointRequestHeaders.Builder newBuilder()
      Creates a new builder for the EndpointRequestHeaders type.
      Returns:
      a new EndpointRequestHeaders.Builder
    • getEnabled

      public Optional<Boolean> getEnabled()
      true if the module will be applied to traffic, false to disable. default true if unspecified
      Returns:
      the value of the property as a boolean wrapped in an Optional
    • getAdd

      public Map<String,String> getAdd()
      a map of header key to header value that will be injected into the HTTP Request before being sent to the upstream application server
      Returns:
      the value of the property as a Map of String to String
    • getRemove

      public List<String> getRemove()
      a list of header names that will be removed from the HTTP Request before being sent to the upstream application server
      Returns:
      the value of the property as a List of String
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object