TrawlerFetchReplyDataProtocolResponse

GoogleApi.ContentWarehouse.V1.Model.TrawlerFetchReplyDataProtocolResponse


Table of Contents ▼

Jump to a specific part of the page:

Description

Group with protocol specific response (determined by the protocol of the url that generated the content we return).

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. Code (type: integer(), default: nil)
    - Response code. We emulate the HTTP response codes for all protocols that we know. -- HTTP: response code for the downloaded page. -- FTP: similar with HTTP: 200 - OK, 40X - errors (not found, etc), 500 - server unavailable
  2. ContentType (type: String.t, default: nil)
    - Content type as inferred by the fetcher (webutil/http/content-type.proto)
  3. CutoffSize (type: String.t, default: nil)
    - Where did we cut off? Includes headers plus truncated but uncompressed content. Present if and only if we truncated the document.
  4. HttpVersion (type: String.t, default: nil)
    - DEPRECATED, see field 113. Stores the HTTP version we used in the final hop.
  5. ProtocolVersionFallback (type: boolean(), default: nil)
    - DEPRECATED, see field 114. Whether we fallback from HTTP/2 to HTTP/1.1 during fetch. The fallback could happen in any hops and there can be at most one fallback because once fallback happens, we will not try HTTP/2 anymore.
  6. UnTruncatedSize (type: String.t, default: nil)
    - The amount of data we got from the webserver before any truncation, but after undoing any HTTP gzip/deflate encoding. For HTTP, this includes headers and uncompressed content. Content size is excluded if content was not successfully fetched. See description above TotalFetchedSize for comparison.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.TrawlerFetchReplyDataProtocolResponse{
Code: integer() | nil,
ContentType: String.t() | nil,
CutoffSize: String.t() | nil,
HttpVersion: String.t() | nil,
ProtocolVersionFallback: boolean() | nil,
UnTruncatedSize: String.t() | nil
}

Function

@spec decode(struct(), keyword()) :: struct()

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.TrawlerFetchReplyDataProtocolResponse