comp • gb.web • response

Response (gb.web)

This class is used for generating the HTTP response.

This class mainly generates the response headers.

The response contents must be sent to the standard output of the CGI script with the PRINT instruction.

This class is static.

Static properties

Static methods
Returns or sets if the response is buffered. By default, the response is not buffered.
Buffered  
Returns or sets the MIME type of the response.
ContentType  
Done  
Return or set the end-of-line sequence type of the response.
EndOfLine  
Returns or sets the status header of the request.
Status  
Adds an HTTP header to the response.
AddHeader  
Sends the response header, and allows you to print the response contents.
Begin  
Cancel  
Terminates the response.
End  
Return the mimetype of a file according to its extension.
GetContentTypeFrom  
Redirect the HTTP client to another URL.
Redirect  
Removes a cookie.
RemoveCookie  
Sends a file to the client.
SendFile  
Creates a new cookie.
SetCookie