Nicolas Martyanoff on Nostr: The new BCL format for Boulevard has interesting upsides. For example in HTTP ...
The new BCL format for Boulevard has interesting upsides. For example in HTTP handlers you can define the response with just a status code:
reply 200
Or with a status code and body:
reply 200 "Hello!\n"
Or with a full block containing all possible parameters (optional of course):
reply {
status 200
header "Content-Type" "application/json"
header "Content-Language" "en-US"
body "{\"status\": \"ok\"}"
}
Configuration should be easy to read and write.
reply 200
Or with a status code and body:
reply 200 "Hello!\n"
Or with a full block containing all possible parameters (optional of course):
reply {
status 200
header "Content-Type" "application/json"
header "Content-Language" "en-US"
body "{\"status\": \"ok\"}"
}
Configuration should be easy to read and write.