Skip to content

Commit

Permalink
add withExpect to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Westby committed Nov 15, 2016
1 parent 2626beb commit 1aea6db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/HttpBuilder.elm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ configuration than what is provided by `elm-http` out of the box.
@docs RequestBuilder, get, post, put, patch, delete, options, trace, head
# Configure request properties
@docs withHeader, withHeaders, withStringBody, withJsonBody, withMultipartStringBody, withUrlEncodedBody, withTimeout, withCredentials, withQueryParams
@docs withHeader, withHeaders, withStringBody, withJsonBody, withMultipartStringBody, withUrlEncodedBody, withTimeout, withCredentials, withQueryParams, withExpect
# Make the request
@docs toRequest, send
Expand Down Expand Up @@ -175,8 +175,8 @@ withHeader key value =
-}
withHeaders : List ( String, String ) -> RequestBuilder a -> RequestBuilder a
withHeaders headerPairs =
map
<| \details ->
map <|
\details ->
{ details
| headers = (List.map (uncurry Http.header) headerPairs) ++ details.headers
}
Expand Down Expand Up @@ -222,8 +222,8 @@ your type signatures.
-}
withMultipartStringBody : List ( String, String ) -> RequestBuilder a -> RequestBuilder a
withMultipartStringBody partPairs =
map
<| \details ->
map <|
\details ->
{ details
| body = Http.multipartBody <| List.map (uncurry Http.stringPart) partPairs
}
Expand Down

0 comments on commit 1aea6db

Please sign in to comment.