Class HttpBinHeaders


  • public class HttpBinHeaders
    extends java.lang.Object
    Defines headers for httpbin.org operations.
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpBinHeaders()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accessControlAllowCredentials()
      Indicates whether to expose response to frontend JS code.
      java.lang.String connection()
      Gets information about the connection status after this message is received.
      void connection​(java.lang.String connection)
      Sets information about the connection status after this message is received.
      com.azure.android.core.util.DateTimeRfc1123 date()
      Gets the date of the response.
      void date​(com.azure.android.core.util.DateTimeRfc1123 date)
      Sets the date of the response.
      java.lang.String via()
      Gets any proxy information.
      void via​(java.lang.String via)
      Sets any proxy information.
      double xProcessedTime()
      Gets the time it took to process this request.
      • Methods inherited from class java.lang.Object

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

      • HttpBinHeaders

        public HttpBinHeaders()
    • Method Detail

      • date

        public com.azure.android.core.util.DateTimeRfc1123 date()
        Gets the date of the response.
        Returns:
        The date of the response.
      • date

        public void date​(com.azure.android.core.util.DateTimeRfc1123 date)
        Sets the date of the response.
        Parameters:
        date - The date of the response.
      • via

        public java.lang.String via()
        Gets any proxy information. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via
        Returns:
        Gets any proxy information.
      • via

        public void via​(java.lang.String via)
        Sets any proxy information. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Via
        Parameters:
        via - Proxy information associated with this response.
      • connection

        public java.lang.String connection()
        Gets information about the connection status after this message is received. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection
        Returns:
        Information whether to keep network connection open or not.
      • connection

        public void connection​(java.lang.String connection)
        Sets information about the connection status after this message is received. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection
        Parameters:
        connection - Information whether to keep network connection open or not.
      • xProcessedTime

        public double xProcessedTime()
        Gets the time it took to process this request. https://github.com/kennethreitz/flask-common/blob/master/flask_common.py#L129
        Returns:
        Time to process this request in seconds.
      • accessControlAllowCredentials

        public boolean accessControlAllowCredentials()
        Indicates whether to expose response to frontend JS code. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Credentials
        Returns:
        True to expose response to frontend JS code and false otherwise.