Definition Strict Coercible Form JSON Data types are available for custom entities schema , which are completely optional. We have 5 data types: Definition - base type d...
Methods Shortcuts Rename Table Drop Table Methods The following methods are available for table alterations: #add_column (see #column for usage) #drop_column #rename_co...
Callbacks Methods Proc Halt HTTP Status Redirect Back Callbacks If we want to execute some logic before and/or after #call is executed, we can use a callback. Callbacks ...
Path Generation Route Recognition Hanami has builtin facilities for routing unit tests. Path Generation We can assert the generated routes, to do so, we’re gonna create a spe...
Request Response Response status Response format When a Hanami action is called, the incoming HTTP request and outgoing HTTP response are represented by the request and resp...
One of the advantages of views as objects is that we can unit test them. We can both understand if a specific presentational logic behaves correctly and/or assert the contents of...
Dependencies API Dependencies API List project dependencies Dependencies API 原文:https://docs.gitlab.com/ee/api/dependencies.html List project dependencies Dependenc...
X-Frame-Options X-Content-Type-Options X-XSS-Protection Content-Security-Policy Modern web development has many challenges, and of those security is both very important and o...
Default Behavior Custom HTTP Status Custom Handlers Actions have an elegant API for exception handling. The behavior changes according to the current Hanami environment and th...
Default Rendering Context Exposures Custom Rendering Bypass Rendering In the previous section we generated a view. Let’s use it. Default Rendering First, we edit the corr...