Stud.IP  6.0
StudipResponse Class Reference
Inheritance diagram for StudipResponse:
Response

Public Member Functions

 output ()
 
- Public Member Functions inherited from Response
 __construct (string $body='', array $headers=[], ?int $status=null, ?string $reason=null)
 
 set_body ($body)
 
 set_status ($status, $reason=null)
 
 add_header ($key, $value)
 
 output ()
 
 send_header ($header, $replace=false, $status=null)
 

Additional Inherited Members

- Static Public Member Functions inherited from Response
static get_reason ($status)
 
- Data Fields inherited from Response
 $body = ''
 
 $status
 
 $reason
 
 $headers = []
 

Member Function Documentation

◆ output()

output ( )

Outputs this response to the client using "echo" and "header".

This extension allows the body to be a callable and handles generators by outputting the chunks yielded by the generator.


The documentation for this class was generated from the following file: