SkillAgentSearch skills...

Hackttp

PSR7-like http request/response management

Install / Use

/learn @usox/Hackttp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Build Status

HackTTP

This is a (currently unstable) implementation of hack-http-request-response-interfaces to allow type-safe access to http requests.

Usage

Creating a server request object containing the request data:

  $server_request = \Usox\HackTTP\createServerRequestFromGlobals();

Creating a response:

  $response = \Usox\HackTTP\createResponse(200, 'Up and at them');

Creating an uri:

  $uri = \Usox\HackTTP\createUri('https://some-uri.com');

HackTTP also provides a set of factories to create the various classes. Those factories implement the hack-http-factory interfaces.

Inspired by guzzles psr7 implementation

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated1y ago
Forks3

Languages

Hack

Security Score

75/100

Audited on Feb 21, 2025

No findings