Smart.Framework Logo

final class \SmartHttpUtils
{ } ::

Class: Smart HTTP Utils - provides utils function to work with HTTP protocol.


class Methods

public static function parse_http_headers ( string $raw_headers ) {} :: ARRAY
public static function encode_var_post ( string $name, string $value ) {} :: STRING
public static function http_multipart_form_delimiter ( ) {} :: STRING
public static function http_multipart_form_build ( string $delimiter, array $fields, array $files ) {} :: STRING
public static function chunked_part_decode ( string $chunk ) {} :: STRING
@return: {string} the decoded message.
@param: {string} $chunk: the encoded message
Dechunk a HTTP 'transfer-encoding: chunked' part (Ex: Body)
If The Chunked Part was not encoded properly it will be returned it unmodified.

class Properties


class Constants

public const AUTH_USER_BEARER = ":BEARER" ;  ::
public const MAX_HEADER_SIZE = 16384 ;  ::

Sample code: PHP

<?php

// Usage example:
 Smart::some_method_of_this_class(...);

// #end php code


documentation generated on: 2024-12-16 17:13:19 +0000


Smart.Framework © 2009-2024 unix-world.org