Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F506113
DiffusionGitLFSResponse.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
777 B
Referenced Files
None
Subscribers
None
DiffusionGitLFSResponse.php
View Options
<?php
final
class
DiffusionGitLFSResponse
extends
AphrontResponse
{
private
$content
;
public
static
function
newErrorResponse
(
$code
,
$message
)
{
// We can optionally include "request_id" and "documentation_url" in
// this response.
return
id
(
new
self
())
->
setHTTPResponseCode
(
$code
)
->
setContent
(
array
(
'message'
=>
$message
,
));
}
public
function
setContent
(
array
$content
)
{
$this
->
content
=
phutil_json_encode
(
$content
);
return
$this
;
}
public
function
buildResponseString
()
{
return
$this
->
content
;
}
public
function
getHeaders
()
{
$headers
=
array
(
array
(
'Content-Type'
,
'application/vnd.git-lfs+json'
),
);
return
array_merge
(
parent
::
getHeaders
(),
$headers
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 11, 5:19 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
98576
Default Alt Text
DiffusionGitLFSResponse.php (777 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment