LFT
  • Namespace
  • Class
  • Tree

Namespaces

  • Docoflow
    • Contracts
    • Entity
    • Facades
    • Models
    • Traits
  • Docolight
    • Agno
      • Traits
    • Container
    • Http
      • Contracts
    • Rest
      • Handler
      • Http
    • Support
      • Debug
      • Traits
  • Docotory
    • Traits
  • None

Classes

  • Headers
  • JsonResponse
  • MimeResponse
  • Response
  • ResponseFactory

Class MimeResponse

Response that has specified mime type.

CApplicationComponent
Extended by Docolight\Http\Response implements ArrayAccess
Extended by Docolight\Http\MimeResponse

Direct known subclasses

Docolight\Http\JsonResponse

Abstract
Namespace: Docolight\Http
Author: Krisan Alfa Timur krisanalfa@docotel.co.id
Located at Docolight/Http/MimeResponse.php

Methods summary

public string
# getBody( )

Return HTTP response Body

Return HTTP response Body

Returns

string

Overrides

Docolight\Http\Response::getBody
public array[int
# finalize( )

Finalize prepares this response and returns an array of [status, headers, body].

Finalize prepares this response and returns an array of [status, headers, body].

Returns

array[int
status, array headers, string body]

Overrides

Docolight\Http\Response::finalize
public Docolight\Http\Response
# write( string $body, boolean $replace = false )

Append HTTP response body.

Append HTTP response body.

Parameters

$body
Content to append to the current HTTP response body
$replace
Overwrite existing response body?

Returns

Docolight\Http\Response

Overrides

Docolight\Http\Response::write
protected Docolight\Http\Response
# innerWrite( Docolight\Http\Contracts\Arrayable $body, boolean $replace = false )

Inner write.

Inner write.

Parameters

$body
$replace

Returns

Docolight\Http\Response
protected
# sendBody( string $body )

Send body

Send body

Parameters

$body

Overrides

Docolight\Http\Response::sendBody
abstract protected string
# convertToStringRepresentation( Docolight\Http\Contracts\Arrayable $body )

Convert to a string representation.

Convert to a string representation.

Parameters

$body

Returns

string
abstract protected string
# getContentType( )

Get content type specified for this class.

Get content type specified for this class.

Returns

string

Methods inherited from Docolight\Http\Response

__construct(), getEmpty(), getLength(), getMessageForCode(), getStatus(), init(), offsetExists(), offsetGet(), offsetSet(), offsetUnset(), prepareHeaders(), redirect(), send(), setBody(), setMessage(), setStatus()

Properties summary

protected string $stringRepresentation

String representation of the body.

String representation of the body.

#

Properties inherited from Docolight\Http\Response

$body, $headers, $length, $messages, $status

LFT API documentation generated by ApiGen