Differences Between: [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403]
This file contains an abstract definition of an LTI service
Author: | Stephen Vickers |
Copyright: | 2014 Vital Source Technologies http://vitalsource.com |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 254 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
response:: (15 methods):
__construct()
get_code()
set_code()
get_reason()
set_reason()
get_request_method()
get_accept()
set_accept()
get_content_type()
set_content_type()
get_request_data()
set_request_data()
set_body()
add_additional_header()
send()
__construct() X-Ref |
Class constructor. |
get_code() X-Ref |
Get the response code. return: int |
set_code($code) X-Ref |
Set the response code. param: int $code Response code |
get_reason() X-Ref |
Get the response reason. return: string |
set_reason($reason) X-Ref |
Set the response reason. param: string $reason Reason |
get_request_method() X-Ref |
Get the request method. return: string |
get_accept() X-Ref |
Get the request accept header. return: string |
set_accept($accept) X-Ref |
Set the request accept header. param: string $accept Accept header value |
get_content_type() X-Ref |
Get the response content type. return: string |
set_content_type($contenttype) X-Ref |
Set the response content type. param: string $contenttype Content type |
get_request_data() X-Ref |
Get the request body. return: string |
set_request_data($data) X-Ref |
Set the response body. param: string $data Body data |
set_body($body) X-Ref |
Set the response body. param: string $body Body data |
add_additional_header($header) X-Ref |
Add an additional header. param: string $header The new header |
send() X-Ref |
Send the response. |