Toggle navigation
1.x Docs
Request
Overview
Globals
Uploads
Method
URL
Headers
Accept
Authorization
Forward
Content
Extending the Request
Response
Overview
Protocol Version
Status Code
Headers
Cookies
Header Callbacks
Content
Sending
Specialized Responses
Extending the Response
Sapien
1.x Docs
1. 1.x Docs
1.1.
Request
1.1.1.
Overview
1.1.1.1.
Instantiation
1.1.1.2.
Further Reading
1.1.2.
Globals
1.1.2.1.
JSON Decoding
1.1.2.2.
Custom Values
1.1.3.
Uploads
1.1.3.1.
Motivation
1.1.4.
Method
1.1.5.
URL
1.1.6.
Headers
1.1.7.
Accept
1.1.8.
Authorization
1.1.8.1.
Basic
1.1.8.2.
Bearer
1.1.8.3.
Digest
1.1.8.4.
Generic
1.1.8.5.
None
1.1.9.
Forward
1.1.9.1.
$xForwarded
1.1.9.2.
$forwarded
1.1.10.
Content
1.1.11.
Extending the
Request
1.1.11.1.
Constructor
1.1.11.2.
Properties and Methods
1.1.11.3.
Magic Methods
1.2.
Response
1.2.1.
Overview
1.2.1.1.
Instantiation
1.2.1.2.
Examples
1.2.1.3.
Further Reading
1.2.2.
Protocol Version
1.2.2.1.
Setting the Version
1.2.2.2.
Getting the Version
1.2.3.
Status Code
1.2.3.1.
Setting the Code
1.2.3.2.
Getting the Code
1.2.4.
Headers
1.2.4.1.
Setting
1.2.4.1.1.
Setting One Header
1.2.4.1.2.
Setting All Headers
1.2.4.2.
Adding
1.2.4.3.
Getting
1.2.4.3.1.
Getting One Header
1.2.4.3.2.
Getting All Headers
1.2.4.4.
Checking
1.2.4.5.
Removing
1.2.4.5.1.
Removing One Header
1.2.4.5.2.
Removing All Headers
1.2.5.
Cookies
1.2.5.1.
Setting
1.2.5.1.1.
Setting One Encoded Cookie
1.2.5.1.2.
Setting One Raw Cookie
1.2.5.1.3.
Setting One Cookie Instance
1.2.5.1.4.
Setting All Cookies
1.2.5.2.
Getting
1.2.5.2.1.
Getting One Cookie
1.2.5.2.2.
Getting All Cookies
1.2.5.3.
Checking
1.2.5.4.
Removing
1.2.5.4.1.
Removing One Cookie
1.2.5.4.2.
Removing All Cookies
1.2.6.
Header Callbacks
1.2.6.1.
Setting
1.2.6.2.
Adding
1.2.6.3.
Getting
1.2.6.4.
Checking
1.2.6.5.
Removing
1.2.7.
Content
1.2.7.1.
Setting
1.2.7.2.
Getting
1.2.8.
Sending
1.2.8.1.
Content Handling
1.2.9.
Specialized Responses
1.2.9.1.
FileResponse
1.2.9.2.
JsonResponse
1.2.10.
Extending the
Response
1.2.10.1.
Properties
1.2.10.2.
Constructor
1.2.10.3.
Methods