Skip to content

Commit

Permalink
minor documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed Dec 13, 2013
1 parent 1ff7aa3 commit cd2705b
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions lib/Hijk.pm
Original file line number Diff line number Diff line change
Expand Up @@ -199,32 +199,21 @@ like L<HTTP::Tiny>, L<Furl> or L<LWP::UserAgent>.
This is the only function to be used. It is not exported to its caller namespace
at all. It takes a request arguments in HashRef and returns the response in HashRef.
The C<$args> request arg should contain key-value pairs from the following
table. The value for C<host> and C<port> are mandatory and others are optional
with default values listed below
=over 4
=item host => ...
=item port => ...
=item timeout => 0
=item method => "GET"
=item path => "/"
=item query_string => ""
=item head => []
=item body => ""
=back
Too keep the implementation straight-forward, Hijk does not take full URL string
as input.
The C<$args> request arg should be a HashRef containing key-value pairs from the
following list. The value for C<host> and C<port> are mandatory and others are
optional with default values listed below
host => ...,
port => ...,
timeout => 0,
method => "GET",
path => "/",
query_string => "",
head => [],
body => "",
Too keep the implementation minimal, Hijk does not take full URL string as
input. User who need to parse URL string could use L<URI> modules.
The value of C<head> is an ArrayRef of key-value pairs instead of HashRef, this way
the order of headers can be maintained. For example:
Expand Down

0 comments on commit cd2705b

Please sign in to comment.