Skip to content

Commit

Permalink
Improve document
Browse files Browse the repository at this point in the history
  • Loading branch information
knu committed Mar 10, 2016
1 parent a21c2bc commit 6eccd8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/agents/post_agent.rb
Expand Up @@ -16,7 +16,8 @@ class PostAgent < Agent
By default, non-GETs will be sent with form encoding (`application/x-www-form-urlencoded`). Change `content_type` to `json` to send JSON instead. Change `content_type` to `xml` to send XML, where the name of the root element may be specified using `xml_root`, defaulting to `post`.
If `emit_events` is set to `true`, the server response will be emitted as an Event and can be fed to a WebsiteAgent for parsing (using its `data_from_event` and `type` options). No data processing
will be attempted by this Agent, so the Event's "body" value will always be raw text. In the Event's "headers" value, header names will be downcased for the ease of using.
will be attempted by this Agent, so the Event's "body" value will always be raw text.
The Event will also have a "headers" hash with all keys downcased, and a "status" integer value.
Other Options:
Expand Down

0 comments on commit 6eccd8f

Please sign in to comment.