PATH:
home
/
bnathsfovv
/
analisisdesangre.online
/
wp-includes
<?php /** * HTTP API: WP_HTTP_Response class * * @package WordPress * @subpackage HTTP * @since 4.4.0 */ /** * Core class used to prepare HTTP responses. * * @since 4.4.0 */ #[AllowDynamicProperties] class WP_HTTP_Response { /** * Response data. * * @since 4.4.0 * @var mixed */ public $data; /** * Response headers. * * @since 4.4.0 * @var array */ public $headers; /** * Response status. * * @since 4.4.0 * @var int */ public $status; /** * Constructor. * * @since 4.4.0 * * @param mixed $data Response data. Default null. * @param int $status Optional. HTTP status code. Default 200. * @param array $headers Optional. HTTP header map. Default empty array. */ public function __construct( $data = null, $status = 200, $headers = array() ) { $this->set_data( $data ); $this->set_status( $status ); $this->set_headers( $headers ); } /** * Retrieves headers associated with the response. * * @since 4.4.0 * * @return array Map of header name to header value. */ public function get_headers() { return $this->headers; } /** * Sets all header values. * * @since 4.4.0 * * @param array $headers Map of header name to header value. */ public function set_headers( $headers ) { $this->headers = $headers; } /** * Sets a single HTTP header. * * @since 4.4.0 * * @param string $key Header name. * @param string $value Header value. * @param bool $replace Optional. Whether to replace an existing header of the same name. * Default true. */ public function header( $key, $value, $replace = true ) { if ( $replace || ! isset( $this->headers[ $key ] ) ) { $this->headers[ $key ] = $value; } else { $this->headers[ $key ] .= ', ' . $value; } } /** * Retrieves the HTTP return code for the response. * * @since 4.4.0 * * @return int The 3-digit HTTP status code. */ public function get_status() { return $this->status; } /** * Sets the 3-digit HTTP status code. * * @since 4.4.0 * * @param int $code HTTP status. */ public function set_status( $code ) { $this->status = absint( $code ); } /** * Retrieves the response data. * * @since 4.4.0 * * @return mixed Response data. */ public function get_data() { return $this->data; } /** * Sets the response data. * * @since 4.4.0 * * @param mixed $data Response data. */ public function set_data( $data ) { $this->data = $data; } /** * Retrieves the response data for JSON serialization. * * It is expected that in most implementations, this will return the same as get_data(), * however this may be different if you want to do custom JSON data handling. * * @since 4.4.0 * * @return mixed Any JSON-serializable value. */ public function jsonSerialize() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid return $this->get_data(); } }
[+]
..
[-] class-wp-admin-bar.php
[edit]
[+]
fonts
[+]
ID3
[+]
blocks
[-] class-wp-oembed.php
[edit]
[-] class-wp-recovery-mode-email-service.php
[edit]
[-] class-wp-http-ixr-client.php
[edit]
[+]
Text
[-] theme.json
[edit]
[-] theme-i18n.json
[edit]
[+]
build
[-] class-wp-textdomain-registry.php
[edit]
[+]
Requests
[-] class-wp-text-diff-renderer-table.php
[edit]
[-] feed-atom.php
[edit]
[-] revision.php
[edit]
[-] class-wp-list-util.php
[edit]
[+]
sodium_compat
[-] class-walker-nav-menu.php
[edit]
[+]
block-supports
[+]
rest-api
[+]
customize
[-] class-wp.php
[edit]
[-] meta.php
[edit]
[+]
theme-compat
[-] class-wp-customize-manager.php
[edit]
[+]
php-compat
[-] ms-site.php
[edit]
[-] class-wp-http-cookie.php
[edit]
[-] bookmark.php
[edit]
[-] post-thumbnail-template.php
[edit]
[-] theme-templates.php
[edit]
[-] class-wp-text-diff-renderer-inline.php
[edit]
[-] theme.php
[edit]
[-] class-wp-block-bindings-registry.php
[edit]
[-] locale.php
[edit]
[-] class-wp-block-list.php
[edit]
[+]
IXR
[+]
images
[+]
abilities-api
[+]
SimplePie
[-] general-template.php
[edit]
[+]
PHPMailer
[-] class-wp-recovery-mode-cookie-service.php
[edit]
[-] feed-rss2.php
[edit]
[-] cron.php
[edit]
[-] class-wp-http-response.php
[edit]
[+]
css
[-] connectors.php
[edit]
[-] class-wp-duotone.php
[edit]
[-] class-wp-block-type.php
[edit]
[+]
html-api
[+]
widgets
[-] class-wp-paused-extensions-storage.php
[edit]
[-] class-walker-category-dropdown.php
[edit]
[-] admin-bar.php
[edit]
[-] class-phpmailer.php
[edit]
[-] feed.php
[edit]
[+]
style-engine
[-] post-formats.php
[edit]
[-] class-wp-connector-registry.php
[edit]
[-] option.php
[edit]
[-] class-wp-http-requests-response.php
[edit]
[+]
sitemaps
[-] class-wp-block-pattern-categories-registry.php
[edit]
[+]
block-bindings
[-] wp-db.php
[edit]
[-] class-wp-recovery-mode-key-service.php
[edit]
[-] class-wp-icons-registry.php
[edit]
[+]
certificates
[-] media.php
[edit]
[-] comment-template.php
[edit]
[-] class-wp-user-meta-session-tokens.php
[edit]
[-] canonical.php
[edit]
[+]
interactivity-api
[-] class-wp-http-curl.php
[edit]
[-] sitemaps.php
[edit]
[-] class-wp-block-supports.php
[edit]
[-] category-template.php
[edit]
[+]
assets
[-] class-wp-session-tokens.php
[edit]
[-] class-wp-classic-to-block-menu-converter.php
[edit]
[-] date.php
[edit]
[-] http.php
[edit]
[-] class-wp-locale.php
[edit]
[-] class-wp-block-type-registry.php
[edit]
[-] class-wp-plugin-dependencies.php
[edit]
[-] taxonomy.php
[edit]
[+]
php-ai-client
[+]
ai-client
[-] ms-default-filters.php
[edit]
[-] class-http.php
[edit]
[-] compat.php
[edit]
[-] block-i18n.json
[edit]
[-] class-wp-theme-json-resolver.php
[edit]
[+]
block-patterns
[+]
js
[-] vars.php
[edit]
[-] theme-previews.php
[edit]
[-] rewrite.php
[edit]
[-] category.php
[edit]
[-] class-walker-page-dropdown.php
[edit]
[+]
pomo
[-] template.php
[edit]
[-] class-wp-dependencies.php
[edit]
[-] class-wp-recovery-mode-link-service.php
[edit]
[-] default-filters.php
[edit]
[-] kses.php
[edit]
[-] template-canvas.php
[edit]
[-] author-template.php
[edit]
[-] ai-client.php
[edit]
[-] class-wp-post-type.php
[edit]
[+]
l10n
[-] ms-files.php
[edit]
[-] class-wp-locale-switcher.php
[edit]
[-] global-styles-and-settings.php
[edit]
[-] blocks.php
[edit]