Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/GitHub/Data/Request.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ data CommandMethod a where
Post :: CommandMethod a
Patch :: CommandMethod a
Put :: CommandMethod a

-- | Put requests, where we don't care about response's body
Put' :: CommandMethod ()
Delete :: CommandMethod ()
deriving (Typeable)
Expand Down Expand Up @@ -146,6 +148,8 @@ data Request (k :: RW) a where
SimpleQuery :: FromJSON a => SimpleRequest k a -> Request k a
StatusQuery :: StatusMap a -> SimpleRequest k () -> Request k a
HeaderQuery :: FromJSON a => Types.RequestHeaders -> SimpleRequest k a -> Request k a

-- | Redirect query is /some/ query where we expect status 302 response with @Location@ header.
RedirectQuery :: SimpleRequest k () -> Request k URI
deriving (Typeable)

Expand Down