Darep's Avatar

Darep

@darep.bsky.social

silly nerd

62 Followers  |  91 Following  |  6 Posts  |  Joined: 09.11.2023  |  1.4973

Latest posts by darep.bsky.social on Bluesky

http-template-literal
Make HTTP requests the way TBL intended.

const http = require('http-template-literal')

var res = await http`
  GET https://httpbin.org/get HTTP/1.1
  Accept: application/json
`
console.log('Request one:', res.body)

var res = await http`
  POST https://httpbin.org/post HTTP/1.1
  Content-Type: application/json

  ${JSON.stringify({
    hello: 'world',
    awesome: true
  })}
`
console.log('Request two:', res.body)

http-template-literal Make HTTP requests the way TBL intended. const http = require('http-template-literal') var res = await http` GET https://httpbin.org/get HTTP/1.1 Accept: application/json ` console.log('Request one:', res.body) var res = await http` POST https://httpbin.org/post HTTP/1.1 Content-Type: application/json ${JSON.stringify({ hello: 'world', awesome: true })} ` console.log('Request two:', res.body)

Everybody who claims they they "use HTTP" but don't do it like this is a phoney github.com/pfrazee/http...

29.08.2025 23:02 β€” πŸ‘ 334    πŸ” 30    πŸ’¬ 30    πŸ“Œ 6

input field for "Server Name" with help text "Write a short story about your server using only emojis" and the text is passed to LLM to validate if it indeed is a short story @upcloud.com

27.08.2025 11:48 β€” πŸ‘ 0    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

tykkΓ€sin kans siitΓ€ kun sen lopullisen CloudFormation:n voi vaikka vitest:n .toMatchSnapshot():lla tsekkaa ettΓ€ on semmone kun pitÀÀ ja muutoksista tulee herja πŸ˜„

22.08.2025 08:39 β€” πŸ‘ 1    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

"ucdk" (UpCloud Development Kit) ois kyllΓ€ kova πŸ˜„ – itekkin AWS CDK:ta kΓ€yttΓ€ny ja onhan se kiva kun voi oikeesti kirjotella infran, deploy pipelinet yms. koodina

22.08.2025 08:29 β€” πŸ‘ 3    πŸ” 0    πŸ’¬ 1    πŸ“Œ 0

@upcloud.com needs to implement proper dark mode toggle, save us

21.08.2025 12:44 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

There's an "X"-button on the top-right corner which you could click to dismiss and see whole UI, but seems like the dark mode thingie (DarkReader??) is playing tricks here and making it white and thus invisible… πŸ˜…

21.08.2025 06:31 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 2    πŸ“Œ 0

like Lasse Stolley?

25.01.2025 14:18 β€” πŸ‘ 2    πŸ” 0    πŸ’¬ 0    πŸ“Œ 0

@darep is following 20 prominent accounts