ICanBoogie/HTTP v2.5.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Exception
    • HTTP
      • Headers
      • Request
      • RequestDispatcher

Classes

  • CallableDispatcher
  • File
  • FileInfo
  • FileList
  • FileResponse
  • Headers
  • RedirectResponse
  • Request
  • RequestDispatcher
  • RequestRange
  • Response
  • Status
  • WeightedDispatcher

Interfaces

  • Dispatcher
  • Exception
  • SecurityError

Exceptions

  • AuthenticationRequired
  • ClientError
  • DispatcherNotDefined
  • ForceRedirect
  • MethodNotSupported
  • NotFound
  • PermissionRequired
  • ServerError
  • ServiceUnavailable
  • StatusCodeNotValid

Functions

  • dispatch
  • get_dispatcher
  • get_initial_request

Class FileInfo

File information.

Namespace: ICanBoogie\HTTP
Located at FileInfo.php

Methods summary

public static string
# resolve_type( string $pathname, string & $extension = null )

Resolves the MIME type of a file.

Resolves the MIME type of a file.

Parameters

$pathname
Pathname to the file.
$extension

The variable passed by reference receives the extension of the file.

Returns

string

The MIME type of the file, or application/octet-stream if it could not be determined.

Properties summary

public static array $types
# [ '.doc' => 'application/msword', '.docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', '.gif' => 'image/gif', '.jpg' => 'image/jpeg', '.jpeg' => 'image/jpeg', '.js' => 'application/javascript', '.json' => 'application/json', '.mp3' => 'audio/mpeg', '.odt' => 'application/vnd.oasis.opendocument.text', '.pdf' => 'application/pdf', '.php' => 'application/x-php', '.png' => 'image/png', '.psd' => 'application/psd', '.rar' => 'application/rar', '.txt' => 'text/plain', '.zip' => 'application/zip', '.xls' => 'application/vnd.ms-excel', '.xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ]
public static array $forced_types
# [ '.js', '.json', '.php', '.txt' ]
public static array $types_alias
# [ 'text/x-php' => 'application/x-php' ]
ICanBoogie/HTTP v2.5.0 API documentation generated by ApiGen