question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom method support

See original GitHub issue

It’s impossible to register a custom Method with safe/idempotent semantics or whether it permits/forbids a body since the demise of the global, mutable, despicable registry.

package com.example

package object cornercase {
  val BLORP: Method = ???
}

We can make Method.fromString("BLORP") === BLORP. But we can’t define that BLORP is safe, idempotent, or what type of body it takes. We also can’t make Method.fromString("BLORP") eq BLORP. You can do both of these things in akka-http.

Does anybody out there actually BLORP? If you do, can you figure out how to do this without global state?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rossabakercommented, Mar 27, 2018

My view: if you’re important enough to be a flyweight with recognized properties, you’re important enough to be in the IANA registry.

Anyone want to fight? 🥊 🥊

0reactions
rossabakercommented, Apr 5, 2021

There is no longer a mutable registry.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom methods | Cloud APIs
This chapter will discuss how to use custom methods for API designs. Custom methods refer to API methods besides the 5 standard methods....
Read more >
Custom Methods - Infinite Blue
A custom method is a JavaScript code execution runtime that allows you to customize the behavior of requests to your backend by providing...
Read more >
Definition of a custom method - CS Professional Suite
A custom method is a depreciation calculation method that you define when standard IRS formulas aren't appropriate. You can define and use up...
Read more >
question: custom method support · Issue #3482 · denoland/deno
To use an app protocol over HTTP. The use case is RPC using methods for procedure names. RFC 2616 allow to extend basic...
Read more >
Mission 2 - 1: Create Custom App - Method Help Center
However, there isn't an interface for a user to enter or view data in this table. The rest of the missions will detail...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found