You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename AsyncHttp to Http and enhance API documentation
- Rename AsyncHttp class to Http for cleaner API naming
- Add comprehensive PHPDoc annotations for all HTTP methods including PSR-7 interface methods
- Update all test files to use new Http class name
- Remove sample and stress test files
- Add missing use statements for HTTP interfaces and configuration classes
- Expand method documentation to include request builder, streaming, and PSR-7 methods
* @method static bool hasHeader(string $name) Checks if a header exists by the given case-insensitive name.
61
+
* @method static string[] getHeader(string $name) Retrieves a message header value by the given case-insensitive name.
62
+
* @method static string getHeaderLine(string $name) Retrieves a comma-separated string of the values for a single header.
63
+
* @method static MessageInterface withHeader(string $name, string|string[] $value) Return an instance with the provided value replacing the specified header.
64
+
* @method static MessageInterface withAddedHeader(string $name, string|string[] $value) Return an instance with the specified header appended with the given value.
65
+
* @method static MessageInterface withoutHeader(string $name) Return an instance without the specified header.
66
+
* @method static StreamInterface getBody() Gets the body of the message.
67
+
* @method static MessageInterface withBody(StreamInterface $body) Return an instance with the specified message body.
68
+
* @method static string getProtocolVersion() Retrieves the HTTP protocol version as a string.
69
+
*
70
+
* PSR-7 Request interface methods:
71
+
* @method static string getRequestTarget() Retrieves the message's request target.
72
+
* @method static RequestInterface withRequestTarget(string $requestTarget) Return an instance with the specific request-target.
73
+
* @method static string getMethod() Retrieves the HTTP method of the request.
74
+
* @method static RequestInterface withMethod(string $method) Return an instance with the provided HTTP method.
75
+
* @method static UriInterface getUri() Retrieves the URI instance.
76
+
* @method static RequestInterface withUri(UriInterface $uri, bool $preserveHost = false) Returns an instance with the provided URI.
77
+
*
78
+
* Request streaming methods:
79
+
* @method static CancellablePromiseInterface<StreamingResponse> streamPost(string $url, mixed $body = null, ?callable $onChunk = null) Streams the response body of a POST request.
0 commit comments