Comments (7)
I'll happily accept documentation contributions! Next time you open the gem to figure something out, write some comments about it above the method and send it my way.
from httparty.
I wrote up some basic documentation for HTTParty at http://gist.github.com/422500 which might be useful. Please feel free to format & add it to the Wiki here, or simply ignore it if it isn't up to snuff :)
from httparty.
Wow, I thought HTTParty wasn't working correctly because :body wasn't automagically parsed for JSON/XML... sometime later I discovered parsed_response. +1 better docs
from httparty.
@nathany Agh, the HTTParty::Response object should display the parsed_response by default. The fact that you had to use parsed_response tells me something went wrong. Can you please post a code snippet?
from httparty.
Oh, perhaps it does work. I was using .body before, which is always the raw text? Sorry, misread the basic.rb example. This seems to be working:
result = {}
r = HTTParty.get(url, :query => payload)
r.each {|k,v| result[k.downcase.to_sym] = v}
result
from httparty.
HTTParty::Response#body used to return the parsed response but in an attempt to make the response object act more like a regular NetHTTP response object, #body now returns the raw body. It looks like I should renamed parsed_response to parsed_body for consistency sake. Thanks for the input.
from httparty.
I'm interested in helping with contributing documentation but I'm relatively new to the workflow used for GitHub. If I add some documentation, how should I present it / send it to you? (And by "you" I mean "the cool people behind this really neat gem" :) )
from httparty.
Related Issues (20)
- Configured timeout is duplicated HOT 4
- Question: Formatting an array of objects for multipart form-data
- Add application/problem+json to the supported formats HOT 1
- HTTParty response cache is broken HOT 1
- Is there a place to report security issues? HOT 1
- HTTParty.post is unusable HOT 12
- Bug in post function HOT 1
- HTTParty response body returning compressed GZipped data HOT 1
- Segmentation fault in request HOT 1
- Bundling Httparty results in ArgumentError: bad argument (expected URI object or URI string) HOT 1
- OpenSSL::SSL::SSLError HOT 2
- Is GHSA-5pq7-52mg-hr42 remotely exploitable?
- Adding Response Code Helper Methods like _401? HOT 2
- Add party foul mode HOT 1
- socks proxy only for special https links
- Preventing large payloads? HOT 3
- csv was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0 HOT 7
- Doc request: please explain which changes in 0.22 are breaking changes HOT 4
- Unable to install (older) version of httparty because of dependencies HOT 3
- [debug_output]: Remove the section that reads bytes, or specify the length of bytes to display in the console!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from httparty.