2017 © Pedro Peláez
 

library httputil

Dependency-free HTTP Utilities

image

phpf/httputil

Dependency-free HTTP Utilities

  • Monday, May 19, 2014
  • by wells5609
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

HttpUtil

Utilities for working with HTTP requests and responses., (*1)

  • PHP 5.3+
  • No dependencies
  • Cross-platform

Primary features

  • Full set of functions for retrieving request headers
  • Utilities similar to those found in the pecl_http extension (v1), such as http_get_request_headers() and http_negotiate_content_type().
  • some general-use classes and functions for negotiating request header values based on q
  • a fallback for http_response_code() (PHP < 5.4)
  • Mimetype helpers and some other stuff

Function list

The following functions are based on, and largely consistent with, their pecl_http extension (v1) counterparts:, (*2)

  • http_build_url()
  • http_date()
  • http_redirect()
  • http_send_status()
  • http_send_content_type()
  • http_send_content_disposition()
  • http_send_file()
  • http_get_request_body()
  • http_get_request_body_stream()
  • http_get_request_headers()
  • http_match_request_header()
  • http_negotiate_content_type()
  • http_negotiate_language()

The following functions are also available:, (*3)

  • http_get_request_header()
  • http_negotiate_request_header()
  • http_in_request_header()
  • http_build_cache_headers()
  • http_response_code()
  • http_response_code_desc()
  • http_env()
  • mimetype()
  • mime2filetype()

The Versions

19/05 2014

dev-master

9999999-dev https://github.com/phpf/HttpUtil

Dependency-free HTTP Utilities

  Sources   Download

MIT

The Requires

  • php >=5.3

 

by The PHPf Developer

server http utility