github-0.14.1: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Data.Request

Description

 

Synopsis

Documentation

data Request k a where Source

Github request data type.

  • k describes whether authentication is required. It's required for non-GET requests.
  • a is the result type

Note: Request is not Functor on purpose.

Constructors

Query :: FromJSON a => Paths -> QueryString -> Request k a 
PagedQuery :: FromJSON (Vector a) => Paths -> QueryString -> Maybe Count -> Request k (Vector a) 
Command :: FromJSON a => CommandMethod a -> Paths -> ByteString -> Request True a 
StatusQuery :: StatusMap a -> Request k () -> Request k a 

Instances

data CommandMethod a where Source

Http method of requests with body.

data StatusMap a where Source

Status code transform

class IsPathPart a where Source

Methods

toPathPart :: a -> String Source