Packages

class GitHubRequest extends AnyRef

Handles a GitHubRequest.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GitHubRequest
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GitHubRequest(endpoint: String, requestHeaders: List[Header])

    endpoint

    the request endpoint.

    requestHeaders

    the request headers.

Value Members

  1. val ACCEPT_HEADER: (String, String)
  2. def buildRequest(): HttpRequest

    Build an URL using predefined headers.

    Build an URL using predefined headers.

    returns

    the HttpRequest

  3. def handleErrorCodes(response: GitHubResponse): GitHubResponse

    Handle error codes.

    Handle error codes. Forwards only 200 and 304 status codes, otherwise it throws and exception.

    response

    the GitHub response to handle.

  4. def parseResponse(response: HttpResponse[String]): GitHubResponse

    Parses the HttpResponse into a GitHubResponse.

    Parses the HttpResponse into a GitHubResponse.

    response

    the HttpResponse to parse.

    returns

    a GitHubResponse.

  5. def request(): GitHubResponse

    Request the data and parse the response.

    Request the data and parse the response.

    returns

    a GitHubResponse object.

  6. def retrieveResponse(request: HttpRequest, timeoutCap: Int = 32): HttpResponse[String]