GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Docs
  • Tutorials
  • Playground
  • Reference
  • code
  • Setting request headers
  • HttpHeaders

This view

  • Original page
  • New address

GeezerVison is showing next.angular.dev — HttpHeaders • Angular

API

    
      class HttpHeaders {}
    
    

Constructs a new HTTP header object with the given values.

@paramheadersstring | { [name: string]: string | number | (string | number)[]; } | Headers | undefined
@returnsHttpHeaders

Checks for existence of a given header.

@paramnamestring

The header name to check for existence.

@returnsboolean

True if the header exists, false otherwise.

Retrieves the first value of a given header.

@paramnamestring

The header name.

@returnsstring | null

The value string if the header exists, null otherwise

Retrieves the names of the headers.

@returnsstring[]

A list of header names.

Retrieves a list of values for a given header.

@paramnamestring

The header name from which to retrieve values.

@returnsstring[] | null

A string of values if the header exists, null otherwise.

Appends a new value to the existing set of values for a header and returns them in a clone of the original instance.

@paramnamestring

The header name for which to append the values.

@paramvaluestring | string[]

The value to append.

@returnsHttpHeaders

A clone of the HTTP headers object with the value appended to the given header.

Sets or modifies a value for a given header in a clone of the original instance. If the header already exists, its value is replaced with the given value in the returned object.

@paramnamestring

The header name.

@paramvaluestring | string[]

The value or values to set or override for the given header.

@returnsHttpHeaders

A clone of the HTTP headers object with the newly set header value.

Deletes values for a given header in a clone of the original instance.

@paramnamestring

The header name.

@paramvaluestring | string[] | undefined

The value or values to delete for the given header.

@returnsHttpHeaders

A clone of the HTTP headers object with the given value deleted.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.