abstract class Abbyy::Models::BaseResponse

Overview

Base class for Response objects.

Direct Known Subclasses

Defined in:

abbyy/models/base_response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(response : HTTP::Client::Response) #

[View source]

Instance Method Detail

def headers : HTTP::Headers #

[View source]
def headers=(headers : HTTP::Headers) #

[View source]
def protocol_version : String | Nil #

HTTP version.


[View source]
def protocol_version=(protocol_version : String | Nil) #

HTTP version.


[View source]
abstract def set_properties_from_xml(xml_data : String | IO) #

[View source]
def status_code : Int32 #

The server can return the following HTTP status codes:

  • 200 – successful method call
  • 4xx – incorrect parameters of the method
  • 5xx – an error on the server side

[View source]
def status_code=(status_code : Int32) #

The server can return the following HTTP status codes:

  • 200 – successful method call
  • 4xx – incorrect parameters of the method
  • 5xx – an error on the server side

[View source]
def success? #

[View source]