Sha256: a14b89f00c2682257159b0c32ba3694ac4af969c6da277e699e23cfcec8e98a2

Contents?: true

Size: 1.14 KB

Versions: 45

Compression:

Stored size: 1.14 KB

Contents

Feature: Handles Compressed Responses

  In order to save bandwidth
  As a developer
  I want to uncompress compressed responses

  Scenario: Supports deflate encoding
    Given a remote deflate service
    And the response from the service has a body of '<h1>Some HTML</h1>'
    And that service is accessed at the path '/deflate_service.html'
    When I call HTTParty#get with '/deflate_service.html'
    Then the return value should match '<h1>Some HTML</h1>'

  Scenario: Supports gzip encoding
    Given a remote gzip service
    And the response from the service has a body of '<h1>Some HTML</h1>'
    And that service is accessed at the path '/gzip_service.html'
    When I call HTTParty#get with '/gzip_service.html'
    Then the return value should match '<h1>Some HTML</h1>'

  Scenario: Supports HEAD request with gzip encoding
    Given a remote gzip service
    And that service is accessed at the path '/gzip_head.gz.js'
    When I call HTTParty#head with '/gzip_head.gz.js'
    Then it should return a response with a 200 response code
    Then it should return a response with a gzip content-encoding
    Then it should return a response with a blank body

Version data entries

45 entries across 43 versions & 9 rubygems

Version Path
alloy_sdk-0.1.0 vendor/bundle/ruby/2.6.0/gems/httparty-0.13.1/features/handles_compressed_responses.feature
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/httparty-0.13.1/features/handles_compressed_responses.feature
httparty-0.17.0 features/handles_compressed_responses.feature
httparty-0.16.4 features/handles_compressed_responses.feature
httparty-0.16.3 features/handles_compressed_responses.feature
httparty-0.16.2 features/handles_compressed_responses.feature
httparty-0.16.1 features/handles_compressed_responses.feature
httparty-0.16.0 features/handles_compressed_responses.feature
httparty-0.15.7 features/handles_compressed_responses.feature
httparty-0.15.6 features/handles_compressed_responses.feature
httparty-0.15.5 features/handles_compressed_responses.feature
httparty-0.15.4 features/handles_compressed_responses.feature
httparty-0.15.3 features/handles_compressed_responses.feature
httparty-0.15.2 features/handles_compressed_responses.feature
httparty-0.15.1 features/handles_compressed_responses.feature
httparty-0.15.0 features/handles_compressed_responses.feature
httparty-0.14.0 features/handles_compressed_responses.feature
simplenet-client-0.2.0 ./vendor/bundle/ruby/2.0.0/gems/httparty-0.13.7/features/handles_compressed_responses.feature
simplenet-client-0.2.0 ./vendor/bundle/ruby/1.9.1/gems/httparty-0.13.7/features/handles_compressed_responses.feature
httparty-0.13.7 features/handles_compressed_responses.feature