An alias for add.
Conjoins two instances to produce a new instance that includes all the headers from both.
Creates a new Headers with an extra header prepended.
Creates a new Headers with an extra header prepended. If this header is already present, this method has the effect of adding another header with the same name.
Gets the header at a specified index.
Finds the header that has a given name.
Finds the header that has a given name. If none exists, an exception will be thrown. If more than one match exists, only the first will be returned.
the required header name. Uppercase or lowercase doesn't matter. Via an implicit conversion, a String can be used here.
Tests whether a given header is present.
Tests whether a given header is present.
the required header name. Uppercase or lowercase doesn't matter. Via an implicit conversion, a String can be used here.
Finds all the headers that have a given name.
Finds all the headers that have a given name.
the required header name. Uppercase or lowercase doesn't matter. Via an implicit conversion, a String can be used here.
Finds all the headers that do not have a given name.
Finds all the headers that do not have a given name.
the required header name. Uppercase or lowercase doesn't matter. Via an implicit conversion, a String can be used here.
Finds the header that has a given name.
Finds the header that has a given name. If more than one match exists, only the first will be returned. Use 'filter' if you anticipate more than one.
the required header name. Uppercase or lowercase doesn't matter. Via an implicit conversion, a String can be used here.
Gets the list of header names.
Creates a new Headers augmented with a specified header.
Creates a new Headers augmented with a specified header. If this header is already present, it is removed, so this method has the effect of replacing the existing value(s). Otherwise it adds a new header.
Holds a list of headers. Remember that header names are case-insensitive; the get, find, etc methods take this into account.