Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

HTTPHeader (Google App Engine API for Java)

Stay organized with collections Save and categorize content based on your preferences.
com.google.appengine.api.urlfetch

Class HTTPHeader

  • java.lang.Object
    • com.google.appengine.api.urlfetch.HTTPHeader
  • All Implemented Interfaces:
    java.io.Serializable


    public class HTTPHeader
    extends java.lang.Object
    implements java.io.Serializable
    HTTPHeader can represent either an HTTP request header, or an HTTP response header.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      HTTPHeader(java.lang.String name, java.lang.String value)
      Creates a new header with the specified name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName() 
      java.lang.String getValue() 
      • Methods inherited from class java.lang.Object

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

      • HTTPHeader

        public HTTPHeader(java.lang.String name,
                          java.lang.String value)
        Creates a new header with the specified name and value.
        Parameters:
        name - a not null name
        value - may be a single value or a comma-separated list of values for multivalued headers such as Accept or Set-Cookie.
    • Method Detail

      • getName

        public java.lang.String getName()
      • getValue

        public java.lang.String getValue()