API-Version: 1.9

SoupHeaders

Represents a SoupMessage header.

new SoupHeaders()

Represents a SoupMessage header

Since:
  • 1.1
Source:

Extends

  • Object

Methods

append(name, value)

Appends a value to a header

Parameters:
Name Type Description
name String

Name of the header

value String

Value of the header

Since:
  • 1.1
Source:

clear()

Removes all headers

Since:
  • 1.1
Source:

getList(name) → {String}

Gets a comma seperated header list

Parameters:
Name Type Description
name String

Name of the header list

Since:
  • 1.1
Source:
Returns:

A comma seperated header list or null.

Type
String

getOne(name) → {String}

Gets a header

Parameters:
Name Type Description
name String

Name of the header

Since:
  • 1.1
Source:
Returns:

The header or null.

Type
String

remove(name)

Removes a header

Parameters:
Name Type Description
name String

Name of the header

Since:
  • 1.1
Source:

replace(name, value)

Replaces a header

Parameters:
Name Type Description
name String

Name of the header

value String

New value of the header

Since:
  • 1.1
Source: