Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laminas Http Laravel Package

laminas/laminas-http

Laminas HTTP component providing HTTP client, request/response objects, headers and URI utilities for PHP applications. Useful for building and consuming web services, handling redirects, cookies, and proxy/adapter-based transports.

View on GitHub
Deep Wiki
Context7

Introduction

laminas-http provides the HTTP message abstraction used by laminas-mvc, and also provides an extensible, adapter-driven HTTP client library. It provides the following abstractions:

  • Context-less Request and Response classes that expose a fluent API for introspecting several aspects of HTTP messages:
    • Request line information and response status information
    • Parameters, such as those found in POST and GET
    • Message Body
    • Headers
  • A client implementation with various adapters that allow for sending requests and introspecting responses.

WARNING: Not PSR-7 This library does not support PSR-7, as it predates that specification. For PSR-7 support, please see our Diactoros component.

Request, Response and Headers

The request, response and headers implementations of the laminas-http component provides a fluent, object-oriented interface for introspecting information from all the various parts of an HTTP request or HTTP response. The primary classes are Laminas\Http\Request and Laminas\Http\Response. Both are “context-less”, meaning that they model a request or response in the same way whether it is presented by a client (to send a request and receive a response) or by a server (to receive a request and send a response). In other words, regardless of the context, the API remains the same for introspecting their various respective parts. Each attempts to fully model a request or response so that a developer can create these objects from a factory, or create and populate them manually.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests