Class: WsdlMapper::Runtime::SimpleHttpBackend

Inherits:
BackendBase
  • Object
show all
Includes:
Middlewares
Defined in:
lib/wsdl_mapper/runtime/simple_http_backend.rb

Overview

Middleware Stack

Default Configuration

The default stack is composed of the following middlewares: Diagram

  1. message.factory: Middlewares::SimpleMessageFactory
  2. request.factory: Middlewares::SimpleRequestFactory
  3. dispatcher: Middlewares::SimpleDispatcher
  4. response.factory: Middlewares::SimpleResponseFactory

Customization

Instance Attribute Summary

Attributes inherited from BackendBase

#stack

Instance Method Summary (collapse)

Methods inherited from BackendBase

#dispatch

Constructor Details

- (SimpleHttpBackend) initialize(connection: Faraday.new)

Returns a new instance of SimpleHttpBackend



25
26
27
28
29
30
31
# File 'lib/wsdl_mapper/runtime/simple_http_backend.rb', line 25

def initialize(connection: Faraday.new)
  super()
  stack.add 'message.factory', SimpleMessageFactory.new
  stack.add 'request.factory', SimpleRequestFactory.new
  stack.add 'dispatcher', SimpleDispatcher.new(connection)
  stack.add 'response.factory', SimpleResponseFactory.new
end