Asf_Http_ResponseInterface

Introduction

输出类接口

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Http\ResponseInterface

Class synopsis

<?php
interface Asf_Http_ResponseInterface
{
    public bool setContentType(string $ctype, string $charset)
    public void redirect(string $url, int $status_code)
    public bool setContent(mixed $content)
    public bool appendContent(mixed $content)
    public bool appendContent(mixed $content)
    public string getContent(void)
    public bool send(void)
}

Asf_Http_Response

Introduction

Asf_Http_Response 输出类

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Http\Response

Class synopsis

<?php
final class Asf_Http_Response implements Asf_Http_ResponseInterface
{
    public bool setContentType(string $ctype, string $charset)
    public void redirect(string $url, int $status_code)
    public bool setContent(mixed $content)
    public bool appendContent(mixed $content)
    public string getContent(void)
    public bool send(void)
}