in

A somewhat Pastebin alternative with HTTP POST support




Polarite is a Pastebin alternative made for simplicity written in Go.

Usage

  • Javascript (via Fetch API)
fetch("link coming soon", {
    method: "POST",
    headers: {
        "Content-Type": "text/plain",
        "Authorization": "John Doe <[email protected]>"
    },
    body: "Hello world!"
})
import (
    "net/http"
    "strings"
)

func Polarite() {
    body := strings.NewReader("Hello world")
    req, err := http.NewRequest(http.MethodPost, "link coming soon", body)
    req.Header.Add("Content-Type", "text/plain")
    req.Header.Add("Authorization", "John Doe <[email protected]>")

    client := &http.Client{}
    resp, err := client.Do(req)
}
using System.Net.Http;

var client = new HttpClient();
var request = new HttpRequestMessage() {
    RequestUri = new Uri("link coming soon"),
    Method = HttpMethod.Post,
    Headers = {
        { "Authorization", "John Doe <[email protected]>" },
        { "ContentType", "text/plain" }
    },
    Content = new StringContent("Hello world", Encoding.UTF8, "text/plain")
};

var task = await client.SendAsync(request);

CONTRIBUTING.md. Then you can search for issues that you can work on.

Have fun!

Graphene repository, which its’ name was picked from the name of a mineral.
Then, not so long after, another repository called Flourite emerged. It’s actually a typo of Fluorite, another name of a mineral.
Now, where mankind stands, we want to continue that convention, to pick a name from a list of mineral on Wikipedia.

GitHub

View Github




Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

GIPHY App Key not set. Please check settings

Web Scraping in Node.js! – DEV Community

Confused About rem and em units in CSS?