Documentation

內容目录

上一个主题

< Class Phalcon\Http\Response\Exception

下一个主题

Class Phalcon\Image >

本页

Class Phalcon\Http\Response\Headers

implements Phalcon\Http\Response\HeadersInterface

Source on GitHub

This class is a bag to manage the response headers

Methods

public set (unknown $name, unknown $value)

Sets a header to be sent at the end of the request

public get (unknown $name)

Gets a header value from the internal bag

public setRaw (unknown $header)

Sets a raw header to be sent at the end of the request

public remove (unknown $header)

Removes a header to be sent at the end of the request

public send ()

Sends the headers to the client

public reset ()

Reset set headers

public toArray ()

Returns the current headers as an array

public static __set_state (array $data)

Restore a \Phalcon\Http\Response\Headers object

Follow along: