response = CheckHttpResponse.for(
  'http://localhost:8080/page/1',
  :headers => { 'Host' => 'www.mydomain.com' }
)
response.redirects_to?("http://www.mydomain.com/page1") #=> true
response.redirects_to?("http://nowhere.com/page2")      #=> false
response.errors                                         #=> { :redirect => "Wrong location! Got: http://www.mydomain.com/page1 , expected: http://nowhere.com/page2" }
- 
        Couldn't load subscription status. 
- Fork 0
License
Couldn't load subscription status.
avarteqgmbh/check_http_response
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
        No description, website, or topics provided.
      
    Resources
License
Stars
Watchers
Forks
Packages 0
        No packages published