Module cargo_registry::http [] [src]

Reexports

use conduit::Request;
use conduit::Response;
use conduit_middleware::Middleware;
use curl;
use curl::easy::Easy;
use curl::easy::List;
use oauth2::*;
use serde_json;
use serde::Deserialize;
use std::str;
use std::error::Error;
use std::collections::HashMap;
use app::App;
use util::CargoResult;
use util::internal;
use util::ChainError;
use util::human;
use Uploader;

Structs

SecurityHeadersMiddleware

Functions

github

Does all the nonsense for sending a GET to Github. Doesn't handle parsing because custom error-code handling may be desirable. Use parse_github_response to handle the "common" processing of responses.

parse_github_response

Checks for normal responses

token

Gets a token with the given string as the access token, but all other info null'd out. Generally, just to be fed to the github fn.