Comments (5)
Since accessing the sinatra routes over CoAP, the workaround is the following:
post '/blub/hallo' do
puts "\n\n\n\n"
puts params.inspect
puts "\n\n\n\n"
'Test Antwort'
end
get '/.well-known/core' do
content_type 'application/link-format'
'</blub/hallo>;sh="/t";n="Hallo",
</blub/zweitertest>;sh="/l";ct=41;n="HalloTest"'
end
from david.
Automatically generating .well-known/core
is currently only supported in Rails. I will keep this issue open as feature request.
from david.
Would you like to add this feature?
from david.
Maybe I can add this feature as soon as I get a little deeper into coap and into the internal logic of the david gem.
At the moment, I would prefer just adding a few lines of code to the documentation that describe how to use david with sinatra.
from david.
I'm looking at this now from a different point of view: making sure that rspec requests can get from /.well-known/core. I already changed how to link list was created in my pull request. I've submitted issue #10 about this.
from david.
Related Issues (12)
- Starting the HelloWorld example crashes setsockopt in multicast HOT 1
- how to do rspec testing for /.well-known/core HOT 1
- [Potential] Security Vulnerabilities within ruby-coap/david HOT 2
- passing options to david
- David eating parameter when using cbor
- David ignores config.coap.only in Rails 5.2
- Additional licences HOT 6
- 'No such middleware to insert before'... HOT 3
- Freezing with #NoMethodError using Rails 5.1.2 and coap.only = false HOT 5
- Add support for incoming block-wise transfers HOT 15
- ["Invalid query parameters: invalid byte sequence in UTF-8"] when sending CBOR request to sinatra app with david HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from david.